Skip Navigation

[Resuelto] Pagebuilder output different from actual when trying inserting custom types

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Etiquetado: 

Este tema contiene 6 respuestas, tiene 2 mensajes.

Última actualización por Charles hace 7 años.

Asistido por: Nigel.

Autor
Mensajes
#594221

Support,

I am using the following code to display a button with custom fields:

<div class="articlebnbuttonwrapper"><a class="articlebnbutton" href="[types field="amazon-url"][/types]">PURCHASE:&nbsp; [types field="price"][/types]</a>
</div>

My pagebuilder shows the button built correctly: enlace oculto
But the actual output is different, not sure why: enlace oculto

Can you spot the problem?

Thanks,
Chuck

#594277

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hi Chuck

You are using the same double-quote marks for your href attribute as for your field attribute. Change one or the other to single quotes, like so:

href="[types field='amazon-url'][/types]"

It doesn't matter which.

#594289

Modified to this:

<div class="articlebnbuttonwrapper">
<a class="articlebnbutton" href="[types field='amazon-url'][/types]">PURCHASE:&nbsp; [types field='price'][/types]</a>
</div>

Still looks the same?

Thanks,
Chuck

#594306

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hi Chuck

Can you remind me which page builder you are using, and where you are adding the button?

You are designing a content template with the page builder and inserting the button with a normal text module?

#594309

Nigel,

I'm using X Theme and Cornerstone. The button is displayed within each post. I've since decided to place the html in a content template and add the template as raw data, but it's still not showing correctly, even with the changes you suggested.

Thanks,
Chuck

#594317

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hi Chuck

OK, I just tested this myself locally to see what's missing, and what's missing is specifying raw output for your URL field.

The Types URL field will output a link tag by default, not just the URL saved in the database. You can tell it to output just the saved URL by adding the output attribute like so:

[types field='amazon-url' output='raw'][/types]

That should do it.

#594388

Nigel,

That did the trick! I'll have to remember the importance of raw content in the future.

Thank you,
Chuck