• Resolved brentrambo

    (@brentrambo)


    The subject pretty much says it. The next and previous page links that load the next posts or pages take the users to the top of the page.

    This means if the query loop block is near the bottom of the page, and a user clicks on next page to load more posts, they are taken to the top of the page and have to scroll down. The new posts or pages will be loaded, but it’s hardly a desired result.

    Is this expected behavior?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Do you have a link to a site where we can look at what you describe?

    @brentrambo This is expected behavior. Anytime you are using pagination features, the links can only go to the page in question but there is no way for it to automatically scroll down to where you have the posts.

    In these situations my recommendation would be to use either an infinite scroll or “load more” button if that is possible. It really depends on what you used for setting this up as to what options you’ll have.

    Thread Starter brentrambo

    (@brentrambo)

    @threadi I don’t have a site up yet; I’m tinkering in a local installation.

    @crazywpgeek It just seems like a really bizarre decision to make a block that has links to load more content, but upon clicking the user is taken away from the block (i.e., to the top of the page) and has to scroll back to it to see the newly loaded content.

    It isn’t like the pagination links load a new page; they load a fresh set of posts/pages in the block.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Query Loop’s next page link takes user to top of page’ is closed to new replies.