Skip Navigation

[Resuelto] Blank content at CPT Post with Jupiter Theme

This support ticket is created hace 1 año, 1 mes. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Waqar hace 1 año, 1 mes.

Asistido por: Waqar.

Autor
Mensajes
#2650967

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

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