Parameter image, get id only

When creating a parameter to select an image, I always get the URL as a result.

{{dc:param:PortfolioImg}} = > returns the url of the image

Would it be possible to query only the ID, because I would need it for further queries like a custom meta field.
Something like this?

{{dc:post:meta post="{{dc:param:PortfolioImg return="id"}}" key="acf_img-caption-advanced"}}

That seems not working because it is stored as id and size.

screenshot_ 2024-01-23 um 10.51.44

And a very basic question: is there a debug function like the {{dc:looper:debug_consumer}} for parameters?

Thanks

1 Like

Hi @Regnalf,

Unfortunately, it is not possible to return only the id, and there is no debug option available for paraeteres right now.

Thanks

But this would be very important to keep things dynamically!
I found the value how the parameter is stored over the dev tools:

screenshot_ 2024-01-25 um 14.06.36

What if you want to load the caption of the image too? ID and wp media size is nice to have if you just need the picture, but useless if you need more from than that. My example of getting a meta value works perfectly without the “:full” string. It should therefore either be saved and transmitted separately or returned using additional parameters as described above.

So if it’s not there, I’d HIGHLY request it as a feature request.

1 Like

Hi @Regnalf,

I will surely check with our development team and if it is possible will add it as feature request for future consideration.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.