I am trying to: Create a custom grid using the WP Bakery Custom Grid Builder using some post fields from Toolset to display in the custom grid
The bottom post on the page
Link to a page where the issue can be seen: hidden link
I expected to see: Event Start and End Dates info pulled from:
[types field='event-start-date' style='text' format='F j, Y'][/types]
[types field='event-end-date' style='text' format='F j, Y'][/types]
Instead, I got: The text label I used in the text box but not the field info from the post fields shortcode.
Using the grid builder with Toolset integration would or could be a fantastic step forward with WP Bakery Page Builder if I or other people could use the text block within the grid builder to display Toolset fields, it would be REALLY sweet!
Hi, unfortunately I was unable to download the Duplicator package you linked to so I'm not able to do a deep investigation. It looks like no files are available at that link. Can you upload the Duplicator package for me to review? In the meantime, please try to hard-code a post ID and try an alternate shortcode as tests:
Types field: [types field='event-start-date' style='text' format='F j, Y' id="12345"][/types]
Post field: [wpv-post-field name='wpcf-event-start-date' id="12345"]
Replace 12345 in both shortcodes with the numeric post ID of "A Great New Event". Then check to see if either shortcode produces output in this View. Let me know what you find.
Hello, I also hard coded a post as you suggested and that did not display the date, only the text before it such as "Start Date"
Oh okay, it looks like you copy + pasted the code into the Visual tab of the Grid Builder's text block editor instead of the Text tab. Pasting code into the Visual tab should be avoided, because the WYSIWYG tool attempts to format the text. That generally breaks the code. Instead, click the Text tab and do your pasting here. I left your old code in place and added the appropriate code so you can see the difference yourself.
That works great! However, when I add
Start Date: [types field='event-start-date' style='text' format='F j, Y'][/types]
End Date: [types field='event-end-dates' style='text' format='F j, Y'][/types]
With no post ID then I don't see anything (I did paste it into the text box) along with the other of what you mentioned. I can see what you have suggested, but not what I have added...
hidden link
I need to have it this way if possible so I can show all posts this way.
I see, it appears that Types is not able to access the current post's ID inside the Grid Builder's loop structure. Normally you could use the "id" attribute to pass a post ID into the field shortcode:
Start Date: [types field='event-start-date' style='text' format='F j, Y' id='[wpv-post-id]'][/types]
But that doesn't work here. The wpv-post-id shortcode doesn't even work by itself inside the Grid Builder's loop, because they don't use a standard WordPress loop to display posts. I did some additional research and it turns out that we currently have a feature request under consideration to collaborate with this plugin and come up with a way to work inside their Grid Builder's loop. I have added your vote to this feature request so the developers know more people are interested in this feature. At the moment, the best alternative is to use Views to build your loop of posts so the correct post ID is automatically applied to each shortcode in the loop.
Ok Christian I'll wait to see when that arrives. Thanks for all the help
Regards
Al