Site logo

Archived topic

Can I have 2 different Post Layouts?

3 replies · Started by Ryan on May 17, 2018

Viewing posts 1–4 of 4

I have created a custom post type for team members: http://104.254.95.130/~catapultwp/team-members/michael-wood/

This works but I need to create another layout for regular posts.

So I have copied the single.php to my child theme and rename it single-team-members.php and duplicated single again to create single-postcontent.php (http://104.254.95.130/~catapultwp/whats-happening-3/)

All posts use single-team-members. How can I default regular posts to use single-postcontent.php and the custom post type to use single-team-members.php?

Regular posts should always default to the single.php file - you shouldn't need to make a single-postcontent.php file.

I assume single.php and content-single.php still exist?

Hi Tom, Yes both exist.

Maybe a better question is how can I add different templates for post categories?

This archived topic is closed to new replies.