• Resolved virtualmotorpix

    (@virtualmotorpix)


    Hi,
    If I populate the archive search boxes on our site with a particular article title, the search result throws up every article we have in our archive, all approx. 500 of them. Narrowing down the search by populating the ‘Category’ box makes no difference, you still get every article. Can you advise?
    Thanks,
    Glen.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor James Huff

    (@macmanx)

    Just so we’re on the right path, would you please give us a link to a page where the search fails?

    Thread Starter virtualmotorpix

    (@virtualmotorpix)

    Hi James,

    Thanks for coming back to us. This is the coding that refers to the search function on the front. You might find something that is not correct here.
    <!– Start Relevanssi Search Form –>
    <div id=”category-search”>
    <form method=”get” action=”<?php bloginfo(‘url’); ?>”>
    <div>
    <label for=”Search for:”>Search for:</label>
    <input type=”text” value=”<?php the_search_query(); ?>” name=”s” id=”s” />

    <label for=”In Category:”>In Category:</label>
    <select name=’cat’ id=’cat’ class=’postform’>
    <option value=’0′ selected=’selected’>All Categories</option>
    <option class=”level-0 value=”78″>Motorsport</option>
    <option class=”level-0 value=”15″>Road Cars</option>
    <option class=”level-0 value=”12″>Yesteryear</option>
    <option class=”level-0 value=”3″>News</option>
    <option class=”level-0 value=”20″>Fact Files</option>
    <option class=”level-0 value=”11″>Book Reviews</option>
    <option class=”level-0 value=”167″>For Sale</option>

    </select></p>
    <input name=”submit” type=”submit” id=”searchsubmit” value=”Search” />
    </div>
    </form>
    </div>

    <!– End Relevanssi Search Form –>

    And here is a link where we have searched for a book title which is the last book review we have done and it comes up with a search result that is 40 pages long. My Search criteria in this case was: The Ford that beat Ferrari and I selected as a category Book Reviews, the results mentions I suppose everything that has the name Ferrari or Ford in it. Here is the link.
    https://www.porscheroadandrace.com/?s=The+Ford+that+beat+Ferrari&cat=Book+Reviews&submit=Search
    We hope that you can help.
    Thanks very much in advance,
    with kind regards,

    Glen

    Plugin Contributor James Huff

    (@macmanx)

    You’re using Relevanssi to power your search form, not Jetpack Search: https://jetpack.com/support/search/

    You can reach Relevanssi’s support at https://www.ads-software.com/support/plugin/relevanssi/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search not working on archive pages’ is closed to new replies.