Skip Navigation

[Résolu] Output the img url attachment

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

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

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

Dernière mise à jour par Minesh Il y a 7 années et 11 mois.

Assisté par: Minesh.

Auteur
Publications
#441396

Im using custom taxonomy (hierarchical) to group WP media images.

How do i output the img url attachment?

Ive setup the Views and the content template to output the looped item. [wpv-post-title] works as expected but how do i retrieve the raw img url?

Normally i be using the wp_get_attachment_url but is there a tinymce shortcode like [wpv-post-title] to out the attachment url?

Thanks

#441555

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You mean, you have taxonomy custom image field and you want to Display taxonomy custom image field URL?

More info:
=> https://toolset.com/documentation/user-guides/displaying-wordpress-term-fields/

[types termmeta='vt-img' output='raw'][/types]

If it is post custom field then:

[types field="my-image"   url="true"]

More info:
=> https://toolset.com/documentation/customizing-sites-using-php/functions/#image

Ce ticket est maintenant fermé. Si vous êtes un client de Toolset et que vous avez besoin d'aide, veuillez ouvrir un nouveau ticket d'assistance