Sauter la navigation

[Résolu] Display Custom Field Entry in Shortcode Block

This support ticket is created Il y a 3 années et 1 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.

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

Dernière mise à jour par christophS-4 Il y a 3 années et 1 mois.

Auteur
Publications
#2218499

Tell us what you are trying to do?
I want to display this pdf in a page.
I use PDFembedder plugin. So i have a custom post type where user can upload a pdf.

If i use the PDFembedder Block it works, but i want that my client just upload the pdf and its done.
so i create custom-field for fileupload.

The shortcode for it would be this:

lien caché
[pdf-embedder url="lien caché"]

instead of the url i want to display the custom field "pdf-datei"

so i used a text field with that:
[pdf-embedder url="[types field='pdf-text'][/types]"]

but got error message u see in link.

Is there any documentation that you are following?
no

Is there a similar example that we can see?
no

What is the link to your site?
lien caché

#2218527

My issue is resolved now. Thank you!

I think this is the right shortcode:
[pdf-embedder url="[types field='pdf-text' output='raw'][/types]"]

i forget output=raw