Forum Replies Created

Viewing 1 replies (of 1 total)
  • @md. Shazzad Hossain:

    You’re a lifesaver — been struggling to find a clear approach to retrieve custom posts based on multiple custom taxonomy terms for quite a while, and this is it.

    One extra note: for this to work, term ids must have the additional argument set to return term IDs only i.e.

    $args=array(‘fields’=>’ids’); $term_ids = wp_get_object_terms( $post_id, $taxonomy, $args);
    $post_ids = get_objects_in_term( $term_ids, $taxonomy ) ;

    Then it works like a charm.

Viewing 1 replies (of 1 total)