Skip Navigation

[Resolved] Display title of group fields

This thread is resolved. Here is a description of the problem and solution.

Problem:
The issue here is that the user wanted to display the RFG of the current post on the frontend.

Solution:
So you want to display the the RFG for the current post.

You can do this by following the instructions below.

1. Go to views and create a new view and for the Post Type select your RFG.
2. Under the Query Filter section add a filter for the Post Relationship and set the filter for " The post where this View is shown"
3. Populate your view loop output with the fields you require from that RFG, note the Post title will give you the title of the RFG.
4. Add that view to the template that is being used to display your post.

This support ticket is created 5 years, 4 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.

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)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by olivierF 5 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#1333663

Hi,
I have a custom post type with a group of repetable fields.
In th single page of the custom post type, i need to display all the title of the group of fields, only the group of fields of the current post.
Thanks
Olivier

#1333715

Shane
Supporter

Languages: English (English )

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

Screenshot 2019-09-06 at 10.48.06 AM.png

Hi Olivier,

Thank you for getting in touch.

So you want to display the the RFG for the current post.

You can do this by following the instructions below.

1. Go to views and create a new view and for the Post Type select your RFG.
2. Under the Query Filter section add a filter for the Post Relationship and set the filter for " The post where this View is shown" See Screenshot
3. Populate your view loop output with the fields you require from that RFG, note the Post title will give you the title of the RFG.
4. Add that view to the template that is being used to display your post.

Please let me know if this helps.
Thanks,
Shane

#1333801

My issue is resolved now. Thank you!

#1333833

Hi,
I have another question, how do you display that in an archive page?
A list of all custom post types with the list of repetable groups related to this customs post types.
Thanks a lot
Olivier

#1333855

Shane
Supporter

Languages: English (English )

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

Hi Olivier,

The setup would be the same but you will need to select "The post in the current loop" in the view filter and add the view to the custom archive that you've created.

Thanks,
Shane

#1333857

when I insert the view into a loop, I have all the custom post types that show up but I do not have repetable field groups

#1333885

Shane
Supporter

Languages: English (English )

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

Hi Olivier,

Could you send me a screenshot of the view settings that you are inserting into the Archive page?

Perhaps something wasn't set correctly because the only thing that needs to be changed from my original post about this is the filter to "The post in the current loop" instead of "The post where this View is shown"

Thanks,
Shane

#1333905

My issue is resolved now. Thank you!