Skip Navigation

[Resolved] Theme integration manual to use layout templates for custom post types missing

This support ticket is created 6 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#559554

I am trying to: integrate toolset with the enfold theme to use layout templates for custom post types as described here https://toolset.com/documentation/toolset-training-course/part-1-creating-templates-for-displaying-post-types/

Link to a page where the issue can be seen: https://toolset.com/documentation/user-guides/layouts-theme-integration/

I expected to see: an explanation for a theme integration

Instead, I got: "Advanced users will still be able to integrate themes with Layouts so that they can be used to design the whole page, and we will update this page to detail how you would do that."

What happened to the theme integration manual? Can we still use Layouts to design layout templates for custom post types?

#559705

Sure, you can still use Layouts to design templates for CPTs. There are two ways to use Layouts with a custom theme.
1. Basic use, where your Layouts control the main content area and your theme controls header, footer, sidebars, etc.
2. Full integration, where Layouts controls the design of the entire site including header, footer, sidebars, everything.

Most people want 1 - Basic use, because they are fairly happy with the site's overall design provided by the theme. They just want to control the main content area, which Layouts will do automatically. If this is what you're trying to do, no additional work is required in most themes.

Some people want 2. We're still in the process of updating the documentation for this scenario, but basically you want to add a call to the function the_ddlayout() inside your PHP templates. This function call should replace everything inside the standard while have_posts():

while ( have_posts() ) : the_post();
  the_ddlayout();
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.