Displaying the authors list of current category’s posts on category archive page. It is listing below the entry content. Here is the snippet: Explaining the above code: 18-19: Return early if user is not visiting the category archive page. Checking this using is_category() conditional tag. 22: Saving the queried object in a variable $term_obj. Using… Keep Reading about Displaying the authors list of current category’s posts
Drop the following code in your functions.php file if you are targeting the specific category page then use the following snippet: 153 is my “Plugins” category ID. So code is only executing when a user is visiting my “Plugins” category archive page. Checkout this link for more details about WordPress’s is_category() function.