• kc5uyw

    (@kc5uyw)


    I’ve searched around but really haven’t found what I’m looking for here.

    I really like the <!–more–> tag functionality, however I’m trying to find a closing tag for it. So when I like quote a full article from say a news site I only want a tease to show on the index. Then the more link to actually read the whole article, and still have my personal comments shown.

    So it would be something like this.

    [blockquote>]
    Teaser text of article.
    [!–more–]
    rest of article
    [!–/more–]
    [/blockquote]
    My comments at end of post

    Any ideas? I’m pretty good at hacking code but this one has me stumped.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    From a non-hacking standpoint, you could just quote part of the article in the main post, and then have the full quote under the more tag.

    davidchait

    (@davidchait)

    I use the excerpt field for custom index-page excerpts. That way, I can also tweak the excerpts versus the original content, AND I’m not loading the entire content (some are huge posts) for everything, just excerpts.

    As I move to 1.5, I’ll see if I can make some of this available as a plugin (or hack, not sure yet!).

    -d
    CHAITGEAR

    NuclearMoose

    (@nuclearmoose)

    What you are looking for is actually a “pull quote” and the <!--more--> tag isn’t designed to work in that way.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    You could always try the Hide or Cut Post Text plugin. Instead of <!--more--> you’d use <!--cut--> (and the closing <!--/cut-->). Also, you can customize the link text (i.e. <!--cut="Click to read rest of quote..."-->)

    Thread Starter kc5uyw

    (@kc5uyw)

    That is bloody brilliant Coffee2Code, thank you. That is exactly what I wanted. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘More Tag’ is closed to new replies.