How to show author name only if the post is in a specific category?
Yes, that is the line you need to edit, and you need to check and see if the current post is within your specified category. So you could replace that line with this code and it should do the trick: if(in_category(90)) { $author = mom_option(‘post_meta-author’) == 1 ? ‘<span class=”author vcard” itemprop=”author” itemscope itemtype=”https://schema.org/Person”>’.__(‘Posted By:’, … Read more