Hey @palomnik I’m not sure I entirely follow the first question.
I want the page and the sections to show up as select pages featured as dropdowns on the main page of a twenty seventeen based child theme.
If you are doing custom dev work. Are you doing a custom loop and using the_content();
? If so the Mesh sections *should* display as well. BUT if it doesn’t and you are “under the hood” so to speak. You can take a look at get_mesh_section(); on github. You have the ability to pull in the sections of any post.
Also is it possible to create a content type that is only mesh sections without a page body
Out of the box Mesh doesn’t disable “The Editor” though we have had requests for it. I am not keen on removing any default functionality from WordPress core ever based on functionality in Mesh. There are other plugins out there that can do that for you though. Additionally there is nothing stoping you from keeping the page content blank.
Hi Aaron,
Twenty Seventeen is now the new default WP theme that ships with WP. I am just getting used to it. The front page template is different because it allows pages to be displayed as sections using the “infinite scroll” landing page metaphor.
I have not been able to find any reference to “the_content();” or to “get_mesh_section();” When I create a page with mesh sections, the page displays fine independently (presumably using the normal page template) but not as a section on the front_page_template. There are just a few too many layers for me to figure out what needs to go where.
When I load the front page, the section containing the page with mesh sections loads the main body, but not the mesh sections.
-
This reply was modified 7 years, 8 months ago by palomnik.
I am also noticing that on the regular page, the mesh section is displaying twice for some reason.
Ok the reason that the section was displaying twice was that I had added the following to the main page template:
<?php
if ( function_exists( ‘mesh_display_sections’ ) ) {
mesh_display_sections();
}
?>
I removed that and the problem went away. I may be able to get this to work if I can find the correct file to insert that in.
OK – problem solved!
I added that snippet:
<?php
if ( function_exists( ‘mesh_display_sections’ ) ) {
mesh_display_sections();
}
?>
to the page: content-front-page-panels.php
Thanks for your help – and if anyone else is using Twenty Seventeen – there is the answer.