Skip Navigation

[Résolu] Display custom field over image

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 3 réponses, has 2 voix.

Last updated by Adriano Il y a 7 années et 5 mois.

Assigned support staff: Adriano.


I am working on a website for an art gallery. The homepage contains a view with thumbnail images (custom Types field). I would like to display the title (= custom field) and the name of the artist (= parent page) when hovering over the image. How can I achieve that?

My content template looks like this:
<a href="[wpv-post-url]">
[types field="miniatuurafbeelding" size="thumbnail" align="center" resize="crop"][/types]</a>


Dear Hugo,

The code below should does that:

[types field="title-field"]
[wpv-post-title id="$artist"]

You should replace "artist" with the slug of the parent post type.

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.




You are welcome.