简体   繁体   中英

Check if current page is author page in WordPress

Is there a way I can check if the current WordPress page is the author page?

Thanks in advance!

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM