• Hi!

    I’m trying to retrieve the terms of a page’s custom taxonomy.

    When I’m in a post this works just fine:

    $args=array('orderby' => 'none');
    $terms = wp_get_post_terms( $post->ID , 'custom_taxonomy', $args);

    But this won’t work on a page.

    I’ve tried also with: get_the_terms & wp_get_object_terms

    But they don’t seem to work.

    BTW, I’m using a hierarchical taxonomy.

    Thanks for any help in seeing the light 😉

The topic ‘Get Terms for Page’ is closed to new replies.