• I am trying to get my wordpress tag pages (all of them, not one particular one) to show the full post as opposed to just the excerpt like it does now. I am using the twenty ten theme. I was looking at the tag.php file but can;t figure out what to change or if I’m even in the right place. Can someone point me in the right direction for making this change.

    Thanks

    Joe

Viewing 6 replies - 1 through 6 (of 6 total)
  • Do not edit the Twenty Ten theme. Create a child theme for your changes. Once your child theme is active, we should be able to help with the customisation.

    Thread Starter JoeMayo

    (@joemayo)

    I should have mentioned I am already using a child theme.

    In that case, you need to add a loop-tag.php template file to your child theme based on the parent’s loop.php file. Just keep the 3rd Loop and remove the <?php if ( is_archive() || is_search() ) condition.

    Thread Starter JoeMayo

    (@joemayo)

    I removed:

    <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>

    But I get a syntax error

    Here is what I see around the condition you specified:

    <?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' == get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) )  ) : ?>
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <strong><?php if ( is_archive() || is_search() )</strong> : // Display excerpts for archives and search. ?>
    <div class="entry-summary">
    <?php the_excerpt(); ?></div><!-- .entry-summary -->
    <?php else : ?>
    <div class="entry-content">
    <?php the_content( __( 'Continue reading <span class="meta-nav">?</span>', 'twentyten' ) ); ?>
    </div><!-- .entry-content -->
    <?php endif; ?>

    [Please post code snippets between backticks or use the code button.]

    Should I be removing more than what i did?

    Try https://pastebin.com/VsmirK4w
    Warning: untested.

    Thread Starter JoeMayo

    (@joemayo)

    Dreamweaver was giving me a syntax error on line 33 (from the code you provided above).

    33. <?php endif; ?>

    Once I removed that line from the above code it works great.

    Make any sense to you? I know nothing about php.

    It is working so I will go with that unless there are any other suggestions you have.

    Thanks so much.

    Joe

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change Tag Pages To Show Full Post (Not Excerpt)’ is closed to new replies.