How to Fix the Read More Link When Using query_posts

Snippets by IsItWP

Is your read more link not working? Chances are you may be using query_posts to customize your query. In that case, you may want to reset the $more variable to fix this issue.


Add the following snippet just before the loop in your template file and the Read More link will start functioning properly again:

global $more;
$more = 0;

Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly copy / paste code snippets in WordPress, so you don’t accidentally break your site.

If you liked this code snippet, please consider checking out our other articles on the site like: Best WordPress Page Builders (Compared).

Comments   Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!