Brizy templates and Gallery
Hi there,
We wanted to create a Brizy template that could be applied a custom post type. We created the template but couldn't get it to work.
Firslty, we wanted to have a gallery but with the current Brizy gallery you can't select dynamic content.
Secondly, we thought about using a shortcode but the obvious issue here is that you can't use a shortcode on a template as any post that used the template would have the same shortcode.
We tried to use Brizy custom fields i.e. using #customfieldname but that just broke the template as it only seems to work with text items.
Ideally we want one template for a custom post type rather than having to save a layout and then using it for every post using that post type.
-
Hi,
how was this custom post created? Is it a custom post that comes from the theme? Why not add the gallery to the post content and then display it in Brizy via the Brizy Template by adding the 'Content' element: https://jmp.sh/hZdzzfl ?
0 -
Hi Alex, First, we created a custom post type using a plugin called Pods. Initially we created a field for the gallery in Pods but as I mentioned it doesn't work as there's no way within Brizy > Templates to define a gallery field. Not sure how that would work as it only pulls through all the content. Thre isn't an option to filter / select which content you want to show. See attached. Many thanks,
0 -
Hi,
We did not receive any attachments. You have probably responded directly to the email, please add the images as comments to the post on the platform.
btw: did you check this video: https://youtu.be/O5E7vFpPxlI ?
0 -
Sorry about that. Please see attachment. As you can see there is no option to select the post content. It would just bring through all content.
0 -
Yes, correct. I meant that you could add the gallery to the content of the post as a separate section and with Brizy Template you will extract all the content (which also includes the gallery).
0 -
Hi Alex,
Already tried that but it pulls all content through which yuo can't do much with unfortunately.
We've got a work around in place but its just not ideal.
0 -
Hi,
Could you share the workaround? It could be useful for others(of course if you want).
0 -
Is there a solve for this?
0 -
Hi,
what exactly are you trying to do? Did you check this video: https://youtu.be/O5E7vFpPxlI ?
0
Please sign in to leave a comment.
Comments
9 comments