WordPress.org

Ready to get started?Download WordPress

Forums

'MORE' only on index page, not categories or archives? (5 posts)

  1. richarduk
    Member
    Posted 8 years ago #

    I'd like to have the 'MORE ...' tag working only on the index page, so that visitors can skim through to see if there's anything of interest.

    If they go deeper into the site and get hooked and start clicking on the categories or archives I'd like to have the full post displayed. The 'more...' tag (<!--more--> more accurately) can get very frustrating when you're hooked and reading.

    I've done a lot of looking but can't find anything but am sure the code must be very simple.

    As I'm not yet competent at php can anyone help me out?

  2. richarduk
    Member
    Posted 8 years ago #

    Little bump?

  3. oriecat
    Member
    Posted 8 years ago #

    I'm not positive on this, but I believe you would need to use the_excerpt tag on your index.php and then use the_content tag on your archives and single templates.

  4. Kafkaesqui

    Posted 8 years ago #

    oriecat's suggestion will work if you're not using the more quicktag, in that it will show the first N words from your post (or the actual excerpt) on your index.php, and the full content elsewhere.

    To use the more quicktag and still get what you're after... I've been, now and again, working out the kinks on an update to my the_excerpt Reloaded plugin. One of the changes to it will let you do this. Give me a day or so to release it for testing.

  5. richarduk
    Member
    Posted 8 years ago #

    Thankyou both for your reply.

    I shall consider oriecat's method. It might be simple, not sure what drawbacks there are (probably none!)

    Though I might want to use the excerpts for other functions? Still confused.

    Anyhow,Kafkaesqui, been to your link but can't see any evidence that plug in has been updated? Unless I missed it. Will look again later.

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic