How do you choose to render a post or page in Bricks or Wordpress?
There used to be an option in the admin bar top but I no longer see that.
Looking at the Academy Gutenberg – Bricks Academy The screenshots show something I don’t see. I drop straight into Gutenberg.
I also recall that the Posts element used to have a field to choose the data source, but I can’t see that either any more.
Is it me specifically that has lost this ability? Am I looking in the wrong places? Or has the option gone?
BTW I have enabled Pages and Posts in Bricks Settings. Also turned on Load and Save Gutenberg/bricks data in Settings.
Thanks Andre,
You are right I was in fullscreen mode. Actually on every one of my sites including a fresh install. So I wonder if it is now a default as I don’t recall changing every site.
Anyway I fear all that was a red herring and doesn’t resolve my main issue. Which maybe should be in Bugs?
I create a page and add an Accordian to it. This is my FAQs page.
I set the Accordian to use a Query Loop and set the Query to Posts and Taxonomy FAQs.
I set the Title to {post_title} and I set the content to {post_content} both using the lightning bolt to select.
I create a couple of test posts edited in Bricks to add some content. Just a Rich text field.
Now if I view my FAQs page I see the titles of each post ok but I do not see any content.
If I recreate this all but pointing at posts created in Gutenberg everything displays correctly and I can see the FAQ content.
I can see no options to choose how to render the Post content in the FAQ page. Is this possible using Bricks data?
there is no easy way to get the bricks data in this specific scenario at the moment. Feel free to create an idea for this.
Personally I would recommend you to use the regular post content and some custom fields (if needed) for FAQ items. If you really need to create the items in Bricks (because they are so individual and complex) I would create a custom post type for those items and have them have their own page instead of showing them within an accordion.
I use the Accordion for all my FAQs as it seems the perfect solution. Usually each FAQ is just a paragraph or two of text so all done in Gutenberg.
But I now have one where i need to embed a variable into the FAQ text. The Variable is in an Option page created with ACPT. Sadly I don’t seem able to access this in Gutenberg as the ACPT block doesn’t recognise the Option values, only the ACPT metabox variables for CPTs
In Bricks I can just use a dynamic variable inline. Simple. At least I thought so.
So a CPT doesn’t really work in this case. I’ll have a think.
I never worked with ACPT. Maybe you can ask the developer. Shouldn’t be too hard to include a field value in Gutenberg – even for option pages. Maybe using the shortcode (see Shortcode generator - ACPT or Shortcodes - ACPT)?
I can’t get the shortcode to work - probably just need more experimenting to identify the correct field names.
But I can just enter the full field name in Gutenberg ( I do have to use Bricks to show me that so I can copy and paste it ) so can inline it. Works perfectly.
I have raised the Idea and I have raised it with Mauro ( ACPT dev ). Low priority now though.
ACPT well worth looking at. Much prefer it to ACF.