WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Click on the Beers tab on this page: http://beernews.org/brewery/sierra-nevada-brewing/

UPDATE: Here is the Pastebin for Excerpt.php. Note that excerpt.php is called in other places on the site (like the home page and the first tab on the link above and no 'true' appears.)

Here's the code:

<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tabs-2">


    $post_obj = $wp_query->get_queried_object();
    $post_ID = $post_obj->ID;
    $post_title = $post_obj->post_title;
    $brewery_slug = $post_obj->post_name;
    $args = array('post_type' => 'beer',
        'tax_query' => array(
                'taxonomy' => 'brewery',
                'field' => 'slug',
                'terms' => $brewery_slug

    $query = new WP_Query( $args ); ?>

    <?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>

        <?php get_template_part( 'excerpt', get_post_format() ); ?>

        <?php endwhile; ?>

            <?php wp_reset_query(); ?>

            <?php twentyeleven_content_nav( 'nav-below' ); ?>

            <?php else :?>

                <div style="display:block;margin-top:50px;">

                    <p><?php echo 'Click above to zoom in. Area is still in development so no posts yet. Try the specs tab.';?></p>


<?php endif;

// Prevent weirdness

share|improve this question
Can we see the template for excerpt.php? – imHavoc Nov 27 '11 at 3:33
We need to see the template file excerpt.php, which you are calling with get_template_part, because that entry-meta div is rendered from that file. – Rutwick Gangurde Nov 27 '11 at 3:35
Updated the post. Here's the pastebin: pastebin.com/dRfLY1et I grabbed it from local (so just replace localhost/wordpress with beernews.org). – Adam Nov 27 '11 at 4:18
up vote 2 down vote accepted

I am referenceing http://pastebin.com/dRfLY1et

In line 74 either delete echo 'true'; or comment it out. That should keep it from displaying.

share|improve this answer
ah, poor form on my part to not even look at excerpt.php though it was after midnight! – Adam Nov 27 '11 at 22:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.