• Hi

    I am using WooCommerce and want to link a post to multiple WC categories so I have created a custom field (called related_categories) using ACF as a Taxonomy and limited it to “product_cat” which works great and have got the categories linking to the post but when I then come to use your plugin using the related or taxonomy functions it doesn’t bring back the categories / link associated to the categories attached to the post. Here is a copy of the code I am using that is not working. Thanks, Nathan

    [if field=”related_categories”]
    [related field=”related_categories”]
    <p style=”margin-bottom: 7px;”>[field title-link]</p>
    [/related]
    [else]
    <p>No related categories are currently available.</p>
    [/if]

    https://wordpress.org/plugins/custom-content-shortcode/

Viewing 1 replies (of 1 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    [related field] is used just for relationship fields. In the newest plugin update, I added a parameter to get posts related by taxonomy field.

    [related taxonomy_field="related_categories"]

    I also added a note about it in the reference pages. Please let me know how it works for you.

Viewing 1 replies (of 1 total)

The topic ‘ACF Related Taxonomy’ is closed to new replies.