WordPress.org

Ready to get started?Download WordPress

Forums

the_content in query_posts on page.php (3 posts)

  1. kuttnhaste
    Member
    Posted 8 years ago #

    For reasons which would be obvious if you could all see what I'm working on, I want to be able to run query_posts on a single page. Inside the query_posts I want to display the content via <?php the_content("read on"); ?>

    The core idea of this works except for the fact when the posts are rederend they aren't trimming at the --more-- spot... it's displaying the whole post!?

    I was readin up on the_content and saw the notice saying The <!--more--> quicktag will not operate and is ignored if there is only one post being displayed.... is that what's happening to me, since I'm running the query_posts on a single page?

    Cheers in advance.

  2. silpstream
    Member
    Posted 8 years ago #

    Have you tried using 'the_excerpt'?

    http://codex.wordpress.org/Template_Tags/the_excerpt

  3. kuttnhaste
    Member
    Posted 8 years ago #

    I did try using the the_excerpt();. However when I did, it was interpreting it's own spots to trim the posts... regardless or where the <!--more--> was.

Topic Closed

This topic has been closed to new replies.

About this Topic