Custom Post Type | Single & Archive Builder
Hi there,
I'm creating a website for a customer using ACF with a custom post type called product and added a taxonomy "product-category".
Using Brizy in a Page the CPT is available to select, I can choose "product" and the products showing up. But in the Theme-Builder, the selection of post types are only showing posts and pages, even after enabling brizy for this Post-Type in the settings.
1.) What is the missing piece to show the post type here, since I didn't change any details of the CPT?
Second part is, that I wanted to create a archive for this taxonomy, I also can select the taxonomy in the Theme Builder and move forward to "Edit with brizy". But there are no widgets showing of for any typ of archive (in every video / documentation I had a look, there are "Wordress"-Widgets to get the loop in the builder). In my case there isn't anything like that.
2.) How can I edit a Archive Page with brizy for the custom post type, when the widgets of wordpress are missing and what changed to them, that they're not available?
Thank your for your help!
Best, Martin
-
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 -
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 -
Hello Martin,
- Have a look at https://jmp.sh/ghQOlhOO for my answer to this question.
- 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 -
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 -
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.
Comments
5 comments