Skip Navigation

[Resolved] distinguish between views, layouts, and content templates

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 1 year, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2672129

I am trying to display a repeating field group (focal areas) in a custom post type (sites). I have a set of fields that I only want to display for sites with status (taxonomy)=former. I'm confused about when to use views, content templates, or layouts. They all seem to do very similar things and I gather that "Views" is a legacy product now, but it's unclear what to transition to and how to transition.

I have created a content template to display single site pages with status taxonomy=former and the priority is set to 100, but it is still using the theme template for those pages.

#2672457

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You should make sure that your theme should be using the the_content() function to replace the post body (content).

More info:
- https://toolset.com/documentation/programmer-reference/theme-support-for-content-templates/

Layouts plugin is in maintenance mode and we do not encourage people to use it with their new site. You can either use the Toolset Views/Blocks plugin. Please note that both plugins are 1:1 copy and even if you installed and using Toolset Blocks plugin you can still access or build the classic view's using it.

Here is the Doc that shows information how you can achieve it.
- https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/

At last, here is the doc that shows how you can display the repeating field group:
- https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/

For legacy views:
- https://toolset.com/documentation/legacy-features/views-plugin/displaying-related-child-posts/