Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] Need Help with the WordPress <!–more–> Tag Re: [Solved] Need Help with the WordPress Tag

#66377
TeMc
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-“>