Comments Andre started the conversationJune 17, 2020 at 7:58pmI have created a Guitar Lesson post type create custom field groupartistkeyrelated post (that I can select manually)In the guitar lesson post templateinserted the bullet list widgetadded the amount of items neededfor the content selected the custom fields I createdthe only field I can't find is the "related post" field (see attachments). I am unsure what to do so show that link in the list, please advise. Max replied privately Andre replied privately Max replied privately Andre replied privately Max replied privately Andre replied privately Andre replied privately Andre replied privatelyAndre repliedJune 27, 2020 at 11:59pmAfter a lot of tryouts I figured it out: To show the content type before the custom post title I did the following in the widget. <div class="uc_image_carousel_content" > {% if show_title == "true" %}<div class="uc_post_title"> {% set terms = getPostTerms(item.post.id, "content_type", true) %} {% for term in terms %} {{term.name}} {# also you can use term meta fields #} {% set meta_fields = getTermMeta(term.id) %} {{meta_fields.fieldname}} {% endfor %}: {{item.post.title|raw}}</div>{% endif %} Max replied privately Sign in to reply ...
the only field I can't find is the "related post" field (see attachments). I am unsure what to do so show that link in the list, please advise.
After a lot of tryouts I figured it out:
To show the content type before the custom post title I did the following in the widget.
<div class="uc_image_carousel_content" >
{% if show_title == "true" %}<div class="uc_post_title">
{% set terms = getPostTerms(item.post.id, "content_type", true) %}
{% for term in terms %}
{{term.name}}
{# also you can use term meta fields #}
{% set meta_fields = getTermMeta(term.id) %}
{{meta_fields.fieldname}}
{% endfor %}
: {{item.post.title|raw}}</div>{% endif %}