Author Tracking Code!

When you are on an author.php template page, you should be able to get the current author via $wp_query->get_queried_object(). That is also what is_author() uses when you want to check for a specific author. Do you also have a question about setting the cookies? I don’t think WordPress has specific cookie functions. wp_setcookie() is deprecated … Read more

WordPress cookies

Cookies are set on the session BEFORE the page starts to load. Therefor – This function will set the cookie for the NEXT time the page is requested. you can not (as far as I know ) set a cookie onclick without any javascript help, becasue when at the time the page is rendered (and … Read more