Skip to main content

Custom Post Type | Single & Archive Builder

Comments

5 comments

  • KC George

    Hello Martin,

    The "product" custom post type is usually reserved for being used along with WooCommerce. Kindly rename your custom post type to something else like "items", "listings", or "catalog" to avoid conflict with WooCommerce's built-in "product" post type.

    Kindly also rename your taxonomy from "Product Category" to "Item Category". You can then develop a Brizy Archive template for "Item Categories" using the following Display Condition

     

    0
  • Martin Alt

    Hello K C George,

    thanks for your reply and the hint of the reserved names for WooCommerce.

    Now I was able to create both with the builder and it seems to work.

    Only thing is, that I now encounter some details which I thought the Theme Builder would be able to do for me. Maybe you have an Idea or workaround for:

    1.) In the Archive template I'd like to get dynamic content from excerpt or and ACF-Field. Ist there any possibility to get these data for the archive layout or is there no way? I didn't see anything like that for dynamic text.

    2.) I wanted to create a dynamic single / detail template with ACF Fields (which are shown for the text elemets and working). But something like a gallery doesn't seem to show dynamic possibilities, is that (still) right?

     

    Thanks for your help solving this issue.

    Best, 

    Martin

    0
  • KC George

    Hello Martin,

    1. Have a look at https://jmp.sh/ghQOlhOO for my answer to this question.
    2. While single images can be displayed dynamically, displaying galleries dynamically is not possible with Brizy. If you want to include a gallery within your CPT, kindly edit the CPT with Brizy and add a static gallery (instead of adding it dynamically) If you want us to explain this in more detail, please let us know. We can make a screen recording for you.
    0
  • Martin Alt

    Hello K C George,

    thanks for your reply and the great help so far.

    1. Perfect, thank you - I just didn't realize that there is a scrollbar in the are where the fields are shown. Maybe this is something for a new Feature to make that clear for future users :). For me it would also be great to see, which fields are coming from ACF with a separator or so. But: For now this is solved. Thank you for the Screencast.

    2. Hmm, this is sad - I was hoping that ACF support means more features like the dynamic gallery. Is there any roadmap this is on already? Thanks for the workaround. Does this mean I have to use the general "Content" section for that or is this working in a Sub-Element / ACF-Field? Because I didn't want to mix the content of the gallery with the "real" content of the page and show it in different spots.

    0
  • KC George

    Hello Martin,

    Since Brizy does not support a dynamic gallery, consider making the gallery, part of your static content. You can add the gallery below your text content in the Gutenberg editor using a gallery Gutenberg block as in the screenshot at https://jmp.sh/oiRFKjeH

    Instead of adding the content in the Gutenberg editor, you also have the option to edit your CPT with Brizy and and add the content directly in Brizy. The tutorial Create Your WordPress Blog with Brizy explains how you can add blog post content directly in Brizy. You could follow a similar procedure for your CPT and add the gallery as static content using the Brizy gallery element. 

    0

Please sign in to leave a comment.