## How to target a post by a sepecific author?

Question

This is something simple, When a user is visiting a post, I want the code to check the author of the post and then deliver a HTML. Here is what works for category.

<?php if( in_category( 412 ) ){?> Some HTML <?php }else ?>


Is there anything similar for the Author?

0
12 months 2021-10-21T09:39:18-05:00 0 Answers 0 views 0