• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Load Custom Single Post Template For Specific Category & Child Categories

The template and code in the download folder enable you to customize all single posts for 1 or more categories as well as all posts assigned to child/sub categories of the parent categories.

Here’s what the single template produces tested using the Altitude Pro child theme by StudioPress.

And here’s the demo video showing how the template loads on posts in specific parent & child categories :

Video Demo

Shows the template being load on posts assigned to 1 specific parent category and posts assigned to all child categories of the same parent category.

Installation

There’s 2 steps :

Step 1 : From the download folder, upload the file named single-resources-category.php to your child themes root directory.

Step 2 : From the download folder, copy & paste the code from the functions.php file to the end pf your child themes functions file.

You will need to edit the functions code with the i.d for your category as well as the category slug.

Register or login to access the code in the download folder;

Register for full access

Altitude Pro Theme Child / Sub Categories

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems