Skip Navigation

[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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 7 replies, has 2 voices.

Last updated by niallB 5 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1213235

Hey there,

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?

#1213269

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Niall,

Thank you for contacting our support forum.

The page here hidden link

Was this page built by our views plugin ?

If not then we are going to need a way to get the post id's of the posts being queried here.

Could you confirm for me .

Thanks,
Shane

#1213272

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.

#1213389

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Niall,

Thank you for the confirmation.

Is it possible for me to gain access to the site to check out this page?

Thanks,
Shane

#1213426

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nial,

Thank you for the credentials

I'm having a bit of difficulty finding what is generating the output on the page.

Take a look at the screenshot .

Please let me know if this is the block that is controlling the output.

Thanks,
Shane

#1213462

no screenshot there? If it's the show page its

hidden link

Posts Module - Isotope - see options in Module - portfolio element - text - excerpt.

That should be taking the text from a programme page's excerpt which you can see at

hidden link

in Excerpt field below Page Builder

<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

#1213717

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nial,

I see the issue now.

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.

Please let me know.
Thanks,
Shane

#1213729

OK it's so maddenly close to working. Just wanted to make sure there was no Toolset setting i needed to update or change to make it work.