Some of my posts have more than one value for a custom field of the same name. EG see screenshot – for that post shown there are 4 different values for a custom field called “cols”.
Is there any way I could display all the values in my post? Preferably with the ability to put commas or linefeeds between each one?
I understand the requirement. But such functionality is not available/possible with the plugin. The ability to pull custom field value is designed for very simple usecases.
Anything beyond that would involve complexity for most users like delimiter, formatting, HTML etc., 🙂
Hence I would suggest advanced users write a small shortcode using PHP with full control over the output.
Below are some docs related to that.
Creating a shortcode with parameters:
Fetching custom field value:
Adding the custom PHP code to your website:
How to Add Custom Code in WordPress with Site-Specific Plugin?
Thanks for your very detailed reply
Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter