• What I would like is to have a button or link that would take the user to a random post from a specific category; once they arrive I don’t want the title to appear.

    So I’m thinking I need to pass a variable or piece of data when they click the “Random” link/button. Then upon arriving at the random post, I’ll use a simple IF/ELSE statement to display the post title or not.

    My problem is that I don’t know how I could pass this variable. I’ve found ways to take the user to a random post, but no way to tell whether they arrived there randomly. All of the form elements I’ve looked at requires a target URL, which is impossible in this case.

    Any ideas?

  • The topic ‘How Can I Tell If the User Came to a Post From a “Random Post” link’ is closed to new replies.