Displaying all categories of a site in grid style. So this functionality will be good fit for food or photography site. I did following things: Add/Edit featured image thumbnail option for category Create a category template file. Step 1 Adding a image upload option in category’s add/edit form. So user can upload the specific thumbnail… Keep Reading about Listing All Categories in Grid
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.