Advertising
Paste Description for Non-working multiple taxonomy te
This doesn't work, can anyone help please? What am I missing?
- Non-working multiple taxonomy te
- Monday, May 14th, 2012 at 3:56:31pm MDT
- <section class="clearfix non-inset-section">
- <?php
- $args=array(
- 'taxonomy' => 'fan_post_types',
- 'terms' => 'fan-comments',
- 'post_type' => 'fan',
- 'posts_per_page' => 10
- );
- $comments = new WP_Query($args);
- if($comments->have_posts()) : while($comments->have_posts()) :
- $comments->the_post();
- ?>
- <article>
- <span class="non-inset-thumb"><?php the_post_thumbnail('thumbnail'); ?></span>
- <div class="non-inset-text-column">
- <h3><?php the_title(); ?></h3>
- <?php the_content(); ?>
- </div>
- </article>
- <?php endwhile; endif; ?>
- <?php wp_reset_query(); // end comments loop. ?>
- </section>
- <section class="clearfix non-inset-section">
- <?php
- $args=array(
- 'taxonomy' => 'fan_post_types',
- 'terms' => 'fan-merchandise',
- 'post_type' => 'fan',
- 'posts_per_page' => 10
- );
- $merchandise = new WP_Query($args);
- if($merchandise->have_posts()) : while($merchandise->have_posts()) :
- $merchandise->the_post();
- ?>
- <article>
- <span class="non-inset-thumb"><?php the_post_thumbnail('thumbnail'); ?></span>
- <div class="non-inset-text-column">
- <h3><?php the_title(); ?></h3>
- <?php the_content(); ?>
- </div>
- </article>
- <?php endwhile; endif; ?>
- <?php wp_reset_query(); // end merchandise loop. ?>
- </section>
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.