WP: redirect users to a certain category using cookies

Posted by kass on Stack Overflow See other posts from Stack Overflow or by kass
Published on 2010-03-11T01:24:51Z Indexed on 2010/04/16 19:03 UTC
Read the original article Hit count: 169

Filed under:

Basically like cragslist. once you select city on craigslist, nexttime when you go to the site, it redirects you to the city you selected.

What I want to achieve: When a person comes to the site and selects a particular category, the next time they come to the site (returning user) - the page will open up on that category section.

I would think this would be fairly easy to do via setting a cookie when the visitor clicks on the category link (or when the category page loads). When they return the following time, the cookie is read and then the page redirects accordingly.

Unfortunately my knowledge of PHP and cookies is limited, (hence my search for answers) so I need to ask if anyone can help me out!

Anyone have any ideas?

Thanks!

© Stack Overflow or respective owner

Related posts about Wordpress