Is it possible to use [meta:<fieldname>] to get a caption or description out of an image from a dynamic post? [meta:caption] or [meta:description] don't work, but maybe the fieldname is not correct.
I would like to have a a slider with dynamic posts with the title of the article, the image and below that the caption or the description.
Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today.
I would like to confirm that we have received your message. Due to the nature of your query, I will have to contact and consult with the development team first. I will get back to you as soon as I can.
We appreciate your patience while we're working towards your ticket.
The [meta:<fieldname>] post placeholder can extract any custom post meta field. However the image caption does not have a dedicated field for this. As the image caption is related to the post's content, and it's not a definable custom field (there could be more of it), it cannot be extracted this way.
But of course, the featured image and title post placeholders work nonetheless.
What you can do is to enable the Custom Fields option in the post editor settings, and then enter a key value pair. For example the key can be "image-caption" and the value is the actual text. Save it, and then use the [meta:image-caption] post placeholder. This will display the text you entered on the front-end (but not in the admin).
Is it possible to use [meta:<fieldname>] to get a caption or description out of an image from a dynamic post? [meta:caption] or [meta:description] don't work, but maybe the fieldname is not correct.
I would like to have a a slider with dynamic posts with the title of the article, the image and below that the caption or the description.
Paul Houkes.
Hello Paul,
Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today.
I would like to confirm that we have received your message. Due to the nature of your query, I will have to contact and consult with the development team first. I will get back to you as soon as I can.
We appreciate your patience while we're working towards your ticket.
Thank you for your patience.
The [meta:<fieldname>] post placeholder can extract any custom post meta field. However the image caption does not have a dedicated field for this. As the image caption is related to the post's content, and it's not a definable custom field (there could be more of it), it cannot be extracted this way.
But of course, the featured image and title post placeholders work nonetheless.
What you can do is to enable the Custom Fields option in the post editor settings, and then enter a key value pair. For example the key can be "image-caption" and the value is the actual text. Save it, and then use the [meta:image-caption] post placeholder. This will display the text you entered on the front-end (but not in the admin).
Tnx, it works as a charm! - Paul.
Thank you for the feedback, glad you could solve the problem.
If you need further assistance please let us know.