I have asigned a layout to a custom psot types called ¨Instituciones¨ but it is not showing any content. For example here: hidden link
When I developed the site, it was working fine. But server provider has updated WP version, so I had to update all site theme/plugins. And this CPT post is not working anymore.
This occurs only with Jupiter Theme. Not with default WP theme for example.
Hi,
Thank you for contacting us and I'd be happy to assist.
The Jupiter theme uses its own functions to show the content on the single post pages and the archives, instead of using the WordPress theme development standards. This is known to result in compatibility issues with content templates and Layouts, in the past.
You can try copying the 'single.php' file from the WordPress standard theme like 'Twenty Twenty-One' into your active child theme's directory and see if makes a difference.
I hope this helps and let me know how it goes.
regards
Waqar
Thank you. If someone else need it in single.php
replace this line:
mk_build_main_wrapper( mk_get_view('singular', 'wp-single', true), false, $holder_class);
with:
//Here use your CPT plural slug
if ( is_singular( 'instituciones' ) ) {
mk_build_main_wrapper( the_ddlayout( 'default-layout' ));
} else {
mk_build_main_wrapper( mk_get_view('singular', 'wp-single', true), false, $holder_class);
}