List of posts using custom taxonomy term
-
I have a custom taxonomy. At the bottom of each post I want to list all posts that use the same term.
MetaCode:
apply_filter('the_content','addmylist'); function addmylist($content){ global $post; $term = get_post_term($post->ID, 'mytaxonomy'); $extra = wp_page_list(array('include'=>get_postids_using_term($term, 'mytaxconomy'))); return $content . $extra; }
Is there a way of actually doing this?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘List of posts using custom taxonomy term’ is closed to new replies.