Brizy Post Template - goes blank when I try to re-edit the post with Brizy
Hi,
I have seen others with a similar issue, but I wanted to ask the question in relation to my specific scenario.
I want to make a simple business directory. Each wordpress post will be a business listing.
I have a Brizy map element in the template, it was my plan to use the template .. then manually edit the map for each listing/post.
But I ran into the issue that others have, that once I try to edit the listing/post with Brizy, the page goes blank. (including the front end, it's just compeltely blank - without even pressing publish I'm pretty sure)
How can I achieve my goal - of having a custom map/contact details .. on each post/listing.?
-
While I wait for my post to be approved, I'll let future searchers know - that to do this type of stuff you need to have custom fields - install this wordpress plugin - it's super easy and powerful https://www.advancedcustomfields.com/
the process seems to be:
You make your template (within the brizy plugin, using the brizy builder - you create a "template")
Watch some youtubes about how ACF is setup and used in a template.
.. then you create a new post in wordpress (add all the information in the new ACF fields) - with the wordpress editor (don't edit the "post" with the brizy builder/editor or it breaks - only edit the 'template' with brizy)
Seems I need to install PODS too.. for more functionality ..
What I'm hoping to achieve with PODS is dynamic data injected into a <brizy embed code tag>.
If someone can lead me in the right direction to that problem :) that would be super helpful! :)
Thank you!!0 -
Hi Lee,
You are right; to create a business directory listing, you can either extend the capabilities of blog posts using the Advanced Custom Fields plugin or create a new Property Custom Post Type and add custom fields to it in Pods.
If you would like to include the Brizy map element and a gallery, as part of your property listing, you have the option to edit your blog posts/properties with Brizy. In this approach, you do not have to create a template under Brizy -Templates in your WordPress Dashboard. Instead, you design your property page after editing the property with Brizy. Here are possible steps you can follow
- Add the global header in the blank page (after clicking on 'Edit with Brizy')
- Add a blank block and design your property hero block with Title, a Featured Image and other important dynamic data. Make your hero block global and add a Display Condition to include on all Properties
- If required add another block and any dynamic data that are not included in the hero block can be added here. Make this block global and add a Display Condition to include on all Properties
- Add another block and include all static data to your property. Here you can include a gallery, a map, or any other text or image. Saved this block in your saved block library.
- Finally add your global footer at the bottom and add a Display Condition to include on all Properties
Once you design all of the above for your first property, when you create your second property, all the global blocks will appear automatically. Import the saved block you have saved in Step 4 above with all static data like map, gallery etc into your second property and modify the content. Repeat the process for the subsequent properties.
If you like, I can record a video demonstrating how to do this either using Pods or ACF. Please let me know.
1 -
Thanks for your reply,
At this stage everything seems managable except for one thing.
I'm happy with the template and ACF (PODS got too complex for me but am happy to try anything)
https://easymenu.com.au/cairns/cafe/district-espresso/
that^ is my 'post' (aka business listing)
At the moment, that "VIEW MENU" button (with a popup modal) is hard coded into the template .. Obviously i need to be able to dynamically inject the code for that button.
How can I achieve this? Ideally it would be perfect to just paste some code into those new post ACF fields, when i create the listing.
(can I use a shortcode? oEmbed? I don't know how to do either of those things yet)
Thanks KC!
Cheers
Lee0 -
Hi Lee,
It may not be possible to make an on-click popup dynamic. If you are using Brizy Popup builder to add the on-click popup, it needs to be added manually to a button, text or an icon.
If every property has an on-click popup, the best implementation method would be what I have described above. If you would like me to implement this method for you on your project, please let me know. I can do that for you.
1 -
Hi KC,
I found a solution that worked for me, it may be useful for others also.
(note: i believe this could be avoided if Brizy's "embed code" element would accept a custom field. Although, this new method has benefit of also being able to execute PHP, which Brizy's Embed Code element doesn't allow at this time).
The solution I came up with was to use another plugin called Code Snippets (there's a free version which worked for me. So, I'm using two extra plugins: Advanced Custom Fields, and Code Snippets)With code snippets i was able to run a custom text field as code, using Brizy's "Shortcode" element (for wordpress) .. i was able to place the code (a button in my case) where I wanted, within the design.
Code Snippets generates the [Shortcode], that you copy and paste into Brizy.
The very simple code is:<?php echo get_field('Custom_Field_Name'); ?>
Where "Custom_Field_Name" is the multi-lined ACF custom textbox with the custom HTML code pasted into it.
Thanks for your willingness to create a video for me! I appreciate you giving me the idea of setting up the template with brizy blocks - I still may need to do that anyway as it's more customisable, so it's very helpful!
In any case, that's how I was able to run a custom text field as html.
Cheers!
Lee0 -
Hi Lee,
Thank you for your reply and for updating us regarding this inconvenience! Great to know that all is working fine on your site now.
Best regards, Nelea.
0
Please sign in to leave a comment.
Comments
6 comments