Support » Plugins » Using Cookies in a Post

  • I’m trying to append a variable to my URL’s. So what I did is use PHP $_GET to read the variable and this code to read the cookie:

    I’m able to display the variable in my sidebar, but not in my posts unless I put the $_COOKIE code into each post.

    Since I have a lot of posts, I’m wondering if there’s a way to read and use the cookie variable in all of my posts without manually inserting the code in each one. Just putting in the header.php or the single.php file doesn’t work.

  • The topic ‘Using Cookies in a Post’ is closed to new replies.