WordPress.org

Ready to get started?Download WordPress

Forums

Custom Taxonomies (1 post)

  1. thejester12
    Member
    Posted 4 years ago #

    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; ?>

  2. "><?php the_date( 'n/d'); ?><?php the_title(); ?>
  3. <?php endwhile; ?>'

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags