Home / posts / Fix the read more link when using query_posts
  • How to Fix the read more link when using query_posts

    fix-the-read-more-link-when-using-query_posts

    When using query_posts to customize the query you may find that the “read more…” link no longer functions. Fixing this issue will require you to reset the $more variable. Add the following snippet just before the loop and things will start functioning properly again.

    ( click code to copy )

    wordpress snippet : PHP

    <>
    global $more;
    $more = 0;
    

    ( WordPress codex functions, hooks, in this snippet. )