[Support request] Can I have 2 different Post Layouts?

Home Forums Support [Support request] Can I have 2 different Post Layouts?

Home Forums Support Can I have 2 different Post Layouts?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #578189
    Ryan

    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?

    #578506
    Tom
    Lead Developer
    Lead Developer

    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?

    #578793
    Ryan

    Hi Tom, Yes both exist.

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

    #579049
    Tom
    Lead Developer
    Lead Developer
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.