Skip Navigation

[Resuelto] Very serious problem with shortcodes located in a DIVI Library layout

This support ticket is created hace 7 años. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Este tema contiene 11 respuestas, tiene 2 mensajes.

Última actualización por Francisco Ramón Molina Busquiel hace 7 años.

Asistido por: Minesh.

Autor
Mensajes
#591765
sa01.jpg
sa02.jpg
sa03.jpg
sa04.jpg
sa05.jpg
sa06.jpg
sa07.jpg

I have created a view, in the normal pages it works correctly, however, if I place it in a layout of the DIVI Library that is rendered in the footer of the pages it is not rendered and only the text of the shortcode is displayed.
Look at the screenshots.

Thanks for your help.

Best regards,
Francisco R.

#591901

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

First of all - to check if Divi module accepts shortcode and able to render the shortcode. Could you please try to add following shortcode to your current theme's functions.php file.

add_shortcode( "display_custom_content", function(){
 
    return "hello world";
});

Add the shortcode to your module as given under:

[display_custom_content]

Above shortcode should output the string "hello world".

Could you please confirm what above shortcode outputs?

If it outputs shortcode itselt that means the module clearly doesn't parse shortcodes, so it is expected that Views shortcodes will not work.

If shortcode do not parse, please try to contact Divi support and asking them if there is any way you can parse such shortcode.

#591938
2017-11-22_9-55-51.jpg
2017-11-22_9-46-33.jpg

Yes, as you'll see in the screenshot, your shortcode works perfectly, so the problem is with Toolset.
Interestingly if I put:
[wpv-view name='view-entradas-lineal']
it works correctly.
But with the other syntax it does not work.

#591948

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Could you please tell me which syntax not working and path of the file where you added that code.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#592125

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I can see that you've added view's shortcode correctly with opening and closing square brackets [] and its working fine:

[wpv-view name='view-entradas-lineal']

Could you please confirm.

#592133

Yes. As I said in the previous messages with the syntax [] it works perfectly, but if you use the syntax that the shortcode generation button uses, it does not work.
I had to leave it like that because I have other problems related to this:
https://toolset.com/forums/topic/in-the-divi-code-module-the-buttons-to-insert-toolset-shortcodes-are-not-shown/
https://toolset.com/forums/topic/problem-with-divi-modules-and-transparencies-when-used-in-toolset/
Since you have access to my site I would appreciate it if you also see these 2 tickets.

Thanks for your help.

#592137

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Ok fine. So you want to keep as it is?

Regarding:
https://toolset.com/forums/topic/in-the-divi-code-module-the-buttons-to-insert-toolset-shortcodes-are-not-shown/
=> I replied you on this ticket and shared solution to display Toolset shortcode menu.

https://toolset.com/forums/topic/problem-with-divi-modules-and-transparencies-when-used-in-toolset/
=> I'm ending my shift here, so one of our supporter will get in touch with you.

#592235

The logical thing is that the shortcode works with both syntax, so you should solve this problem.

#592558

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

could you please mark this resolved 🙂

#592569

But, have you opened an internal bug for the Toolset developers to solve the problem?

#592777

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

ahh - I thought you asked me to mark this ticket resolved.

Now, the thing is that you added Divi shortcode to footer.php and divi shortcode displays the view that you've added to the divi module.

Divi integration is limited to the_content area. And you are customizing your footer area inside footer.php template.

If you want to display view inside php template - you can use view's PHP API:
=> https://toolset.com/documentation/programmer-reference/views-api/#render_view

#592822

Ok. Thanks Minesh.