Check if current page is author page in WordPress olatechproMarch 29, 20233 Views Is there a way I can check if the current WordPress page is the author page? Thanks in advance! Post Views: 3 Related postsGet rid of this Strict Standards warningWooCommerce: get_current_screen not working with multi languageCan’t login on WordPressForce HTTPS using .htaccess – stuck in redirect loopWordPress: Ajax not working to insert, query and result dataHow Can I pass an image file to wp_handle_upload?
Sure is is_author() – http://codex.wordpress.org/Function_Reference/is_author BTW, a little advice – This was the top link after putting you question title in google. Be sure to do your research first. Log in to Reply
is_author() is a conditional statement to check if an author page is being displayed. However I’m not 100% sure what you’re looking for, so I suggest that you be more specific on what it is you wish to do exactly. You can learn more about conditional tags here. Log in to Reply
Sure is
is_author()
– http://codex.wordpress.org/Function_Reference/is_authorBTW, a little advice – This was the top link after putting you question title in google. Be sure to do your research first.
is_author()
is a conditional statement to check if an author page is being displayed. However I’m not 100% sure what you’re looking for, so I suggest that you be more specific on what it is you wish to do exactly.You can learn more about conditional tags here.