Support

Account

Home Forums Front-end Issues Categorie fields added

Solved

Categorie fields added

  • Hi,

    I have added 2 fields in the product categorie section where i can add own written text. Setting is set: Taxonomy is equal to categorie (product_cat). Those fields are visable in the backend product categorie. Now I want to show them on my site using the shortcode [acf field="category_content"], but it doesn’t show this field.

    What am i doing wrong?

  • I think you’re missing a parameter.

    The example in the docs shows:
    [acf field="field_name" post_id="123"]

    As you’re using a tax/cat, you would need to pass in the ID I think.

    So something more like:
    [acf field="field_name" post_id="term_X"] # X is the term ID you're getting the value from

  • Thanks, I didn’t saw that shortcode. But it works. Thank you very much

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.