Forums

Index & Category Page Issue (3 posts)

  1. Jardry
    Member
    Posted 5 years ago #

    I am implementing a blog at http://nshc.com.au
    As you will see, the index page only shows the post up to where I've inserted the "more" tag. If I select a category, for example "committees" the category page shows the full post without some of the formatting.

    1 - How do I get the category page to display the same as the index page?
    2 - How do I get the category page to display the formatting the same?

    I realise the theme I am using is K2, however, the category issue seems to happen regardless of whether I use a standrad theme or a K2 theme.

    As usual, any assistance will be greatly appreciated.

    Jardry

  2. moshu
    Member
    Posted 5 years ago #

    If I select a category, [...] the category page shows the full post without some of the formatting.

    That's not entirely correct. On the category archive page the "excerpt" is displayed: see > Committees" > 2007 Management... post.
    It has a [...] at the end and is lacking the formatting. Read:
    http://codex.wordpress.org/Template_Tags/the_excerpt

    Oh, and replace it with the_content

  3. Jardry
    Member
    Posted 5 years ago #

    moshu,

    Thank you for pointing me in the right direction. I see that I need to have "the_content" rather than "the_excerpt".

    I've edited my loop as follows, which works, but would like to know how to remove the "if...else" without it possibly breaking the loop somewhere else.

    As you may gather, I am not a proficient programmer!

    <div class="entry-content">
    <?php if (is_archive() or is_search() or (function_exists('is_tag') and is_tag())) {
    the_content(__('Continue reading','k2_domain') . " '" . the_title('', '', false) . "'");
    } else {
    the_content(__('Continue reading','k2_domain') . " '" . the_title('', '', false) . "'");
    } ?>

    <?php link_pages('<p>'.__('Pages:','k2_domain').' ', '</p>', 'number'); ?>
    </div> <!-- .entry-content -->

    Thanks in anticipation.

    Jardry

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags