How to show only Standard Format post in my custom taxonomy page wordpress 3.8.1
-
Hi i want to show **only Standard FORMAT POST** IN MY CUSTOM TAXONOMY PAGE , WHICH IS AS :
**Actually i have many category and format in my project , hence on this page i need only to show STANDARD FORMAT AND specific category**
—
<?php /** * Locations taxonomy archive */ get_header(); $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?> <div class="wrapper"> <div class="primary-content"> <h1 class="archive-title"><?php echo apply_filters( 'the_title', $term->name ); ?> News</h1> <?php if ( !empty( $term->description ) ): ?> <div class="archive-description"> <?php echo esc_html($term->description); ?> </div> <?php endif; ?> <?php if ( have_posts() ): while ( have_posts() ): the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class('post clearfix'); ?>> <h2 class="post-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="content clearfix"> <div class="post-info"> <p><?php the_time(get_option('date_format')); ?> by <?php the_author_posts_link(); ?></p> </div><!--// end .post-info --> <div class="entry"> <?php the_content( __('Full story…') ); ?> </div> </div> </div><!--// end #post-XX --> <?php endwhile; ?> <div class="navigation clearfix"> <div class="alignleft"><?php next_posts_link('? Previous Entries') ?></div> <div class="alignright"><?php previous_posts_link('Next Entries ?') ?></div> </div> <?php else: ?> <h2 class="post-title">No News in <?php echo apply_filters( 'the_title', $term->name ); ?></h2> <div class="content clearfix"> <div class="entry"> <p>It seems there isn't anything happening in <strong><?php echo apply_filters( 'the_title', $term->name ); ?></strong> right now. Check back later, something is bound to happen soon.</p> </div> </div> <?php endif; ?> </div><!--// end .primary-content --> <div class="secondary-content"> <?php get_sidebar(); ?> </div><!--// end .secondary-content --> <?php get_footer(); ?>
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘How to show only Standard Format post in my custom taxonomy page wordpress 3.8.1’ is closed to new replies.