Support » Fixing WordPress » Custom Taxonomies

  • I’m trying to use some of the new features in WP 3.0, but there isn’t a ton of tutorials/documentation yet. Basically I’d just like to list out some posts using a wp_query and filter it by a custom post type (which is working) along with a custom taxonomy (not working). The custom taxonomy is ‘event-type’ and the kind I want is ‘the-journey’.

    Am I doing anything wrong in the code below?

    (Here is a link to a pastie save of the code as well, looks like it got a little goofy below.)

    ‘<?php $my_query = new WP_Query( array( ‘post_type’ => ‘event’, ‘event-type’ => ‘the-journey’, ‘posts_per_page’ => 6, ‘order’ => ‘ASC’ ) );while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>

  • “><?php the_date( ‘n/d’); ?><?php the_title(); ?>
  • <?php endwhile; ?>’

  • The topic ‘Custom Taxonomies’ is closed to new replies.