Forums

Search results point to blog pages; wp_pagenavi not working on tag.php (2 posts)

  1. tiarala
    Member
    Posted 2 years ago #

    My issue is with page navigation.
    My site: http://www.shortcutchef.com

    Sorting by Category works fine. Sorting by Achives works fine. However, sorting by Tags, even when the code was identical to Category and Archives, would not post page navigation. I had to replace it with simple "next/previous", which will do, but I don't like it. There was no "tag.php" in the dilectio template; I added this page, so that might have something to do with it.

    But weirder than that, when you conduct a search (i.e. "chicken"), the first page of results comes up great, pagenavi and all. HOWEVER, when you try to navigate it sorts through pages of the blog instead of pages of search results. The same thing happens when I replace the wp_pagenavi code with the basic next/previous code.

    I've dug through the archives and tried to find an answer, but nothing works. I've tried adjusting the "query" code (popular pagenavi fix), but I can't find that anywhere in my template.

  2. alchymyth
    The Sweeper
    Posted 2 years ago #

    to get more help, you may have to paste the tag.php, index.php, and search.php (if you have one) each into a http://wordpress.pastebin.com/ and post the individual links to these here. someone might have a look at them and might be able to comment.

    if you have no search.php, then you could make a copy of index.php and save it under the name search.php. this might help to solve one of your problems.

Topic Closed

This topic has been closed to new replies.

About this Topic