Sauter la navigation

[Résolu] Blank content at CPT Post with Jupiter Theme

This support ticket is created Il y a 1 année et 3 mois. 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/Karachi (GMT+05:00)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Waqar Il y a 1 année et 3 mois.

Assisté par: Waqar.

Auteur
Publications
#2650967

I have asigned a layout to a custom psot types called ¨Instituciones¨ but it is not showing any content. For example here: lien caché

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.

#2651003

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

#2651213

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);
}