WordPress.org

Ready to get started?Download WordPress

Forums

Can you query for a specific post, but also use the more tag? (3 posts)

  1. mc_marie
    Member
    Posted 1 year ago #

    So I am calling specific posts using
    query_posts('p=137');
    in several places on a site we're developing: http://meerc.mayecreate.com/contact/

    I can't get the more tag to work though. :(
    I think it's because I'm calling a specific post via its slug, but I'd expect it would still let the more tag work when using
    `the_content('
    <div class="alignright">View Bio ›</div>');'

    Its not though.

    If I use the_excerpt it pulls the wrong part of the post though...

    Anyone have any ideas?

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    you might need to set the $more variable accordingly;
    see http://codex.wordpress.org/Customizing_the_Read_More#How_to_use_Read_More_in_Pages

  3. mc_marie
    Member
    Posted 1 year ago #

    Hmmm... that's what we're doing. Although we're setting it before the loop starts, I'll have to try setting it after the_post. THat's the only difference I could see.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic