Skip to main content

Dynamic Post Template Set to display conditions for a category on single post template type

Comments

9 comments

  • Sandra Prunici

    Hi,

    Unfortunately, at the moment isn't possible to create a template for posts from one category and another template for posts from another category.

    Best regards,
    Sandra

    0
  • ben scott

    That’s a real shame as I thought that would be something which is really important to use with dynamic content like blog posts.

    Is there a method to create a custom post type to achieve the same result?

    0
  • Sandra Prunici

    At the moment isn't a method to create a separate template for posts from a certain category.

    0
  • ben scott

    I worked out a way to get it working I think

    I set the archive template to display on all archives

    then I set the single page to display only on the custom post type - all

     

    that means other category archives can be more specific on the template archive filtering and the single page templates can be set to posts - all and this doesnt affect the custom post type - all

     

    would only be good for 2 dynamic areas on the website so be nice to see this single page filtering on your roadmap (puts me off getting lifetime licence)

     

    all the best ben

    0
  • Sandra Prunici

    Yes, but in the first message, you say that you didn't create the Custom Posts Type https://jmp.sh/yll74hQ but in the last message you said that you have created Custom Posts types. :) It creates a small confusion.

    If you have a Custom Post type created with ACF, for example, "Cars", yes, in this case, you can create a specific template for single posts from "Cars" and another template for all single posts created in classic WP. But here is a bit different situation because here the category of the posts is not important. 

    Best regards,
    Sandra

    0
  • Timothy Faux

    +1 for the ability to apply different single templates to posts with different categories.

    It would be great to avoid having to make custom post types as described above for different single templates. Especially since Brizy does not currently allow for displaying dynamic content from custom post types like it does for regular Wordpress posts, so this prevents one from having archive templates for custom post types. Having one or the other of these functionalities would make Brizy SO much more powerful!

    0
  • Sandra Prunici

    Hi Timothy,

    Thank you for your message and comment. We will take it also in consideration!

    Best regards,
    Sandra

    0
  • Anthony Bennett

    +2 for single template unique categories. Please. 🙏

    I was pointed to this post after asking for help on this same issue on FB. I have a lot of reworking now since this isn't possible. 😔 Such a simple thing would add so much.

    0
  • Sandra Prunici

    Hi, Anthony

    Thank you for your implication and feedback! Each comment is very important for us!

    Best regards,
    Sandra

    0

Please sign in to leave a comment.