Home › Forums › Back End › [Solved] Need Help with the WordPress <!–more–> Tag › Re: [Solved] Need Help with the WordPress Tag
November 8, 2009 at 9:15 am
#66377
Member
Using the excerpt is one way of doing it, but may not give you the behaviour you want.
Since you’re not on the actuall blog-home, category, archive or search page, the_contents() doesn’t know it’s supposed to give you only content up untill the <!–more–> -tag.
To tell WordPress this do a global $more; after the query_posts(); and then "$more=0;" somewhere.
Read also here !! (WP Codex / query_posts#More-tag
Example:
* All posts of category with ID of 2
* show 5 most recent posts
Code:
id=”post-“>