Skip Navigation

[Resolved] Using in a different theme displays entire Page Layout

This support ticket is created 7 years, 6 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 7 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#513883

I am trying to: Display wordpress content

I visited this URL: hidden link

I expected to see: A title and body content

Instead, I got: The entire Layout inserted via the_content

After using the Starter theme I decided to try a create my own theme.
When I use <?php the_title(); ?> I get the correct title.
But when I use, <?php the_content(); ?>, I get the entire layout inserted where it should just be the post body.

#513941

Dear Andrew,

The Layouts plugin will be able to take effect on the area of function the_ddlayout(), you will need to replace whole have_posts() loop(including the_content) with function "the_ddlayouts", see our document:
https://toolset.com/documentation/user-guides/layouts-theme-integration/
We will edit the theme’s template files and replace the whole have_posts() loop with a call to the_ddlayouts().

And if you need a child theme of Toolset starter theme, I suggest you start with the "Toolset Starter Child" theme, you can download it here:
https://toolset.com/account/downloads/#toolset-themes

#514047

I guess my issue is this:

I already have Toolset Starter theme and made a site with it using Layouts and Content Templates.

I then wanted to create an entirely different look so I created a new theme. I would like this theme to utilize the standard WordPress templating and I believed it would since the new theme is not Types integrated.

Unfortunately, the new theme is still affected by the Layouts plugin in the old theme, as shown in my original question.

Do you understand my issue?

#514242

I can not duplicate same problem with Layouts plugin + wordpress default theme 2017, since it is a compatibility problem between Layouts plugin and your custom theme, please provide a downloadable URL for your theme files, and describe detail steps to duplicate same problem, I need to test and debug it in my localhost.

#514634

Thanks for the details, I am downloading the files, will feedback if there is anything found

#514645

Since you did not provide the detail steps, I tried below steps and saw the problem, please correct me if there is anything missing.
2) Create a layout "test 1" with post title + post content
3) Create a post and assign it with above layout "test 1"
4) Test above post in front-end, I can see both the "post title + post content" are outputted in the area of function the_content();

If you do not want the post display the layout "test 1", you can edit the post, in meta box "Template Layout", click link "Stop using this Template Layout", and choose option "Don't use a layout", click "OK", and test again, then it should be able to display as what you want.

If you need to display the post with layout plugin, please try to follow our document to integrate your theme with Layouts plugin:
https://toolset.com/documentation/user-guides/layouts-theme-integration/