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

Comment Form – E-mail Not Required!

Settings > Discussion > Other comment settings > uncheck Comment author must fill out name and e-mail Update Well, as far as WP is concerned these are glued together. You can add your own check for empty name, something like this (not tested): add_filter(‘preprocess_comment’, ‘require_comment_author’); function require_comment_author($commentdata) { if (” == $commentdata[‘comment_author’]) wp_die(‘Error: please enter … Read more