[Resolved] Showing a post’s Custom Fields in Page Builder output via excerpt
This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user was using the fusion builder custom query block to display the posts on a page but wanted to add the custom fields that are attached to those posts.
Solution:
The problem is that the query widget is separate from the module being used the display custom fields.
In this case it won't work, unless you are able to customize the output of the Post Query and add this code to that query.
This is why it is not working because it is not able to get any post information from the post query. Why not recreate this setup in views ?
If not what I recommend that you do is contact the plugin author and see if it is possible to customize the output, this way we might be able to get the ID to pass into the shortcode.
I would highly recommend using views for this as this is exactly what views is meant to do.
This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Our next available supporter will start replying to tickets in about 1.18 hours from now. Thank you for your understanding.
Bit confused about how to implement custom fields beyond the page its tied to.
I have a Programme custom type page that has fields from Toolset that includes date, time, venue, URL, duration.
They show up on their individual pages using code
<h3>Info</h3>
Venue: [types field='venue'][/types]
Date: [types field='date' style='text' format='F jS Y '][/types]
Time: [types field='time'][/types]
Duration: [types field='duration'][/types]
Price: [types field='price'][/types]
Link: Buy Now
like so: hidden link
I want to show these in post results on a Page called shows using WPBakery Page Builder.
hidden link
To do this because of posts query limitation with Page Builder, I'm attempting to output the custom fields in the excerpt so it can automatically be displayed for each post on this listings page. I'm stumped how to do it.
So how do i get that posts information into the regular Page that lists these shows?
No it's a pre-existing page that uses a Page Builder posts module to show these programme pages. I'm using toolset to bring all the metadata into one place.
The problem is that the query widget is separate from the module being used the display custom fields.
In this case it won't work, unless you are able to customize the output of the Post Query and add this code to that query.
This is why it is not working because it is not able to get any post information from the post query. Why not recreate this setup in views ?
If not what I recommend that you do is contact the plugin author and see if it is possible to customize the output, this way we might be able to get the ID to pass into the shortcode.
I would highly recommend using views for this as this is exactly what views is meant to do.