Results 1 to 4 of 4

Thread: Posting

  1. #1

    Default Posting

    Hi Guys,

    I have just made a few posts on my new site

    You may see the most recent one I have is a longer one than the others and instead of just showing the first couple of lines, and then you requiring to click on the heading to view the rest of it,

    It actually just shows the whole post and pushes the rest way down the bottom,

    It used to be like this sites

    My old wordpress blog didn't to what my new one is doing, there must be a entry that i can change the set the max number on lines that are displayed on the homepage per post, but i just cant figure out which one,

    Any one any ideas?

    Thanks so much

  2. #2
    Join Date
    Nov 2007

    Arrow Re: Posting

    In index.php, and wherever else you have the_content() except the single post where it should be the_content(), after your permalinks, add the following:

    <?php if (is_singular()) : ?>
    <?php the_content(); ?>
    <?php else : ?>
    <?php the_excerpt(); ?>
    <strong><?php _e('<a href="'.get_permalink().'">Read More &raquo;'); _e('</a>'); ?></strong>
    <?php endif; ?>

    <div style="clear:both;"></div>

    Put the code above in place of the the_content().

    In the above, you can modify Read More to something else like Continue Reading, etc.

    I hope this is what you meant.

    If you want to have AdSense only after the first post displayed as the_excerpt(), condition it as follows:

    <?php if((is_home() && $post==$posts[0] && !is_paged()) || is_category() && $post==$posts[0]) { ?>
    AdSense code
    <?php } ?>

    This will put adsense only in the first post when you click on Home
    and also when you click on a Category.

  3. #3
    Join Date
    Nov 2007

    Arrow Re: Posting

    In your wp-includes, look for formatting.php.
    Copy it over to your PC.

    Open it in Notepad

    Search for excerpt_length. The default is set for 55. Leave it as it is
    or change it to another number. That's 55 words and not characters.

    Again search for array_push($words, '[...]') You can change [...] to something else as long as you keep the array_push intact.

    Personally, I have kept both as defaults.

    I guess I was late. You already have the changes made.

  4. #4

    Default Re: Posting

    Thanks a bunch guys that did it


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts