Comments David TRappaud started the conversationOctober 25, 2021 at 9:33amI have a custom field holding an array of post numbers. I would like to display the post titles for all the posts. something like: the {{item.post_list.cf_tag_candidates}} displays all the posts numbers correctly {% set candidates = item.post_list.cf_tag_candidates %} {% for candidat in candidates %} [shortcode value=candidat] {% endfor %}Where the shortcode simply returns the post title.UPDATED - found solution using {% set candidates = item.post_list.cf_tag_candidates|split(',') %} Max replied privately Sign in to reply ...
I have a custom field holding an array of post numbers. I would like to display the post titles for all the posts. something like:
the {{item.post_list.cf_tag_candidates}} displays all the posts numbers correctly
{% set candidates = item.post_list.cf_tag_candidates %}
{% for candidat in candidates %}
[shortcode value=candidat]
{% endfor %}
Where the shortcode simply returns the post title.
UPDATED - found solution using {% set candidates = item.post_list.cf_tag_candidates|split(',') %}