Forums

Show Full Post Instead of Excerpt (6 posts)

  1. cstina
    Member
    Posted 4 years ago #

    Hi,

    I want my posts to be default Full, with the "Read More" option available in the WP Admin Panel, as stated here:

    http://codex.wordpress.org/Customizing_the_Read_More

    Right now, my theme template has Excerpt to default and a "Read More" link by default :(

    The above Tutorial (at link) says I need to replace "the template tag the_content() with the_excerpt()." However, I tried that, and it still truncates my posts.

    Any ideas on how I'd mod the code below, so that all I have to do is use the "Read More" option in the Admin Panel?

    Thanks

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <div class="postMeta"><span class="date"><?php the_time('M j, Y') ?></span><span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span></div>
    <h2>" title="<?php the_title(); ?>"><?php the_title() ?></h2>
    <h5>Categories: <?php the_category(', '); ?></h5>
    <div class="entry">
    <div id="introIMG"><?php the_excerpt(); ?></div>
    <p><?php the_content_rss('', TRUE, '', 82); ?> " title="Read More">Read More</p>
    </div>

    .

  2. Khairil Zhafri
    Member
    Posted 4 years ago #

    the_content() will show full post by default unless you put the <!--more--> tag in your post.

    the_excerpt() will show a shorter version of your post content or custom excerpt that you specify.

    You shouldn't have changed it actually.

  3. cstina
    Member
    Posted 4 years ago #

    My tag is currently:

    php the_content

    .... and it's still truncating the posts.

    .

  4. Anonymous
    Unregistered
    Posted 3 years ago #

    As poppacket said, search for all occurrences of the_excerpt and change them to the_content. The file in my theme is index.php where you need to make this change.

    It's been a few months, so you've probably solved this already; this reply is just for other poor souls who may be searching for this info.

  5. bmunch
    Member
    Posted 3 years ago #

    you know what, i' have the_content and it's displaying the optional excerpt.

    strange. gonna have to dig for a while to see what's up.

  6. moshu
    Member
    Posted 3 years ago #

    Maybe you made the same mistake as the OP: the_content and the_content_rss are two very different things!

    At least, that's what it was in cstina's code, so no wonder it didn't show the full content!

Topic Closed

This topic has been closed to new replies.

About this Topic