WordPress.org

Ready to get started?Download WordPress

Forums

Using <!--more--> on single post (9 posts)

  1. courtneyelizabeth
    Member
    Posted 8 years ago #

    Hi,

    I was wondering if there was a way to get the <!--more--> tag to work on a single post....any ideas?

    Thanks for any info..

  2. JcMax200
    Member
    Posted 8 years ago #

    Yea, I just tried to use it today, and it wasn't working for me either...

  3. Beel
    Member
    Posted 8 years ago #

    Not supposed to for obvious reasons, for "shortenning" the text on the single post page use: <!--nextpage-->

  4. courtneyelizabeth
    Member
    Posted 8 years ago #

    but it wont drop down like show and hide will it?

  5. courtneyelizabeth
    Member
    Posted 8 years ago #

    i like the idea of having show/hide on single post because i can post a lot of pictures *like a gallery snippet* and hide them under Read More...and they can open and close it....as they wish.....

  6. Beel
    Member
    Posted 8 years ago #

    Easy enough to do using javascript...

    wrap the "show more" portion like this:
    <div onclick="expandcontent('sc20')" style="cursor:pointer">Click for more
    <div id="sc20" class="switchcontent">
    Blah, blah, blah
    </div></div>

    And have the swithcontent in the header. I'll put up a temporary example just for today (so keep that in mind whomever comes by later):
    http://www.billhayes.us/wordpress/
    http://www.billhayes.us/wordpress/archives/2005/08/05/its-hard-to-say-one-size-fits-all/

  7. courtneyelizabeth
    Member
    Posted 8 years ago #

    now if i could just figure out how to get this in a plugin so i dont have to put all that <div> stuff everytime i wanna do it....

  8. Beel
    Member
    Posted 8 years ago #

    Create a quick tag - and before you ask, there are instructions somewhere already, probably the codex.

  9. courtneyelizabeth
    Member
    Posted 8 years ago #

    I know how to make a quicktag, i just didnt want to have to go through that...i LIKE plugins where you can just click "activate" and not have to worry about anything else.

    Thanks though @ Beel

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.