Support » Fixing WordPress » Infinite paginated pages with query_posts

  • Hi!

    I’m using a custom query in my homepage to show only one category instead of showing all the categories. I have the correct control of the pagination and I’m also showing to total number of pages and the current page with the PageNavi plugin.

    The problem is that, for Worpdress, i have unlimited pages. I mean, If I write manually the URL of the page 200 ( i can visit that page although it doesn’t contain any post.

    How can I tell to WordPress that this page must be a 404 error page instead of the valid page it is interpreting?

    The same pagination method implemented directly in a category works fine (for example in displays a 404 error), I don’t understand why it’s not working on my homepage.

    Any ideas?

    Thanks in advance!!

  • The topic ‘Infinite paginated pages with query_posts’ is closed to new replies.