Forums

[resolved] Full posts not displaying after clicking on specific tag (4 posts)

  1. raestanton
    Member
    Posted 2 years ago #

    I am using Pyrmont Theme ... When you click on a tag (in the tag cloud with heading 'Categories'), only the post headings appear, not the actual posts as well. Is there any way I can change the template so that the full posts appear?

    Here is my blog: portfolio.accurateexpressions.com.au

    For example, if you click on web design, you get this

  2. raestanton
    Member
    Posted 2 years ago #

    i'm using WordPress v2.8.6 ... even though it says 2.8.5 in the right-hand column!

  3. stvwlf
    Member
    Posted 2 years ago #

    Hi

    In the theme's index.php file, this is the code that is causing only the headings to appear, lines 36 to 40

    <?php if (!(is_tag()) && !(is_category())){ ?>
       <div class="entry">
    	<?php the_content(__('</p><p>Read More >></p>', 'pyrmont_v2')); ?>
    	<div class="clear"></div>
       </div><!-- end entry -->
    <?php } ?>

    It says, if this is not a tag page and not a category page, display the post contents. If you want the full contents displayed on all those posts, remove the first and last lines in that block of code.

    But that is going to make a very long page. You might consider displaying just the content summary rather than the full content on those tag and category pages. if you want to try that, change that code above to this:

    <div class="entry">
       <?php if ( is_tag() || is_category() ) {
            the_excerpt();
        } else {
    	the_content(__('</p><p>Read More >></p>', 'pyrmont_v2'));
        } ?>
        <div class="clear"></div>
    </div><!-- end entry -->
  4. raestanton
    Member
    Posted 2 years ago #

    that's awesome ... i had a feeling it was going to be easy!

    thanks steve.

Topic Closed

This topic has been closed to new replies.

About this Topic