Support

Account

Home Forums Front-end Issues Trying to get property of non-object (ACF 5.8.5) Reply To: Trying to get property of non-object (ACF 5.8.5)

  • Hi there,

    I think you just have to echo your $term only.

    <?php echo $term; ?>

    When you register a relashionship field (taxonomy), you have an option called “returning value”.
    By default, this field return an “ID value”.

    If you want to use several properties of your taxonomy (like description and title), you have to check the returning value as an Object.

    Then you target the right property (name, description etc…)

    Let me know if it helps,

    RemSEO.