category archive

Replacing Archive Hero Image With Individual Category Thumbnail In Interior Pro Theme

By default hero image of category archive page is coming from Customize -> Hero Image -> Post & Archive Hero Image section. So it is same for all category archive page. Now I am replacing this hero image with featured image of individual category. Only default archive hero image will show when a category have… Keep Reading about Replacing Archive Hero Image With Individual Category Thumbnail In Interior Pro Theme

Displaying the authors list of current category’s posts

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

Displaying taxonomy description when nothing is entered in intro text box

Category, tags and CPT’s taxonomy archive pages are only showing the intro text. Following code is showing the default WordPress taxonomy description when you are not using the intro text. If you have both (Description and intro text) then intro text will display. Checkout this gists. https://gist.github.com/cpaul007/b1c0c007e068fc549091