detect referr page
I made custom template to randomly redirect users to posts with specific args
I need to know if users reach the post from this page link or from another one
I tried
wp_get_referer();
but it's get the place which I clicked the link on to reach the page
on short ( I need to know if user reach this url through redirecting from example.com?pageid=1
or not
I am using wp_redirect ( get_permalink ( $post-ID ) );
for redirecting
any Idea will be appreciated
Topic cookies references Wordpress
Category Web