Skip Navigation

[Resuelto] add layout into pages by shortcode ?

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem: Is it possible to insert a Layout in a page using a shortcode?

Solution: No, it's not currently possible to use shortcodes to display Layouts. You could use Content Templates instead, since they can be displayed using shortcodes and edited with the Block Editor (Gutenberg).

This support ticket is created hace 5 años, 4 meses. 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Etiquetado: 

Este tema contiene 4 respuestas, tiene 3 mensajes.

Última actualización por Akhil hace 5 años, 4 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#1285481

Hi guys, just checking if its possible to add layout into pages by shortcode ?

you may ask why this weird request, fair enough,
layout pages don't have much control of the third party plugins function.
only for wp core pages.

#1285485

Toolset Layouts cannot be displayed with ShortCodes natively.
You can display Layouts only either thru the native the_content() or the_ddlayout(), the Toolset function to render Layouts.

But since Toolset Layouts is in maintenance (https://toolset.com/documentation/user-guides/layouts-theme-integration/), and if this is a new site, I would suggest not using Layouts here.

You might user Content Templates, they can be shown with a ShortCode and be edited with Gutenberg.

#1285489

Thank you,
Didn't really bother to look at the blocks editor after reading it doesn't fully support wpv-conditional.

its an old site, i guess i have to redo all back if i were to ditch layout plugin, which is loved to ditch.

#1285687

Didn't really bother to look at the blocks editor after reading it doesn't fully support wpv-conditional.
Blocks currently supports wpv-conditional as much as Layouts supports wpv-conditional. I mean that you can still use wpv-conditional in text editors in the Block editor. Block-level integration with conditionals in the Block editor will continue to improve as the Toolset Blocks project moves forward.

Let us know if you have questions about that.

#1285803

My issue is resolved now. Thank you!