Home Forums Weaver Xtreme Theme Custom Post Types – Single Post Page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18197
    lisabee
    Participant

    I know I have done this with Aspen but am having trouble working it with Weaver Xtreme. I have a custom post type ‘gasket’ and a page set to the template Page with Posts. Everything works great on that page. When I click on a post I want to be able to program a custom display using templates/content-gasket.php. However, I cannot figure out how to trigger the page with posts template to run the custom ‘gasket’ single post page. I even took the page with posts template (paget-posts.php) and saved a copy under the name paget-gasket.php then switched my blog page to use that template; only then all my page with posts configuration goes away and it displays a blank page (no posts).

    Can you please tell me how I can have my blog page use the page with posts template for my cpt ‘gasket’ and the single post page to use the templates/content-gasket.php?

    (all the gasket programs are in a child theme)

    #24272
    Weaver
    Keymaster

    ALL single page views are processed by single.php, which in turn uses templates/content-single.php. That is hard wired.

    So, to use a custom single page view of a cpt, you’d have to use a replacement templates/content-single.php that has a check for post type, and uses the alternate display code. That would be easiest, I think.

    Or you could change the code at the single.php level and use your content-gasket.php instead of content-single.php. Either approach would work, I think.

    #24273
    lisabee
    Participant

    OK … thank you weaver!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.