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.
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
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?
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.
Thanks for the details, I am downloading the files, will feedback if there is anything found
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/