Skip Navigation

[Resolved] Display Custom Field Entry in Shortcode Block

This support ticket is created 3 years, 1 month ago. 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.

This topic contains 1 reply, has 1 voice.

Last updated by christophS-4 3 years, 1 month ago.

Author
Posts
#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:

hidden link
[pdf-embedder url="hidden link"]

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?
hidden link

#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