• Resolved Abe

    (@abu117)


    Please see https://coastsportfish.com/ for reference. I have added your search plugin to the menubar and a couple of questions:

    1. There are several items marked as being on sale (please see the on sale page: https://coastsportfish.com/on-sale/ ). Items that are on sale have a “sales badge” on them, but when you search for an item that is marked as being on sale, the search results do not show the badge?

    2. When you search for a product on this site called “SR”, you get several results including “Learn to Fly Fish” and the “Contact Page”, which both contain contact forms. The search results include some of the pages code ie: ” * indicates required field Name:* City: Phone Number: Email:* Subject:* Message:* CAPTCHA Code:* ORVIS RECON Fly Rod An…”

    Any work around for these two items please?

    Abe

    https://www.ads-software.com/plugins/bop-search-box-item-type-for-nav-menus/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author joe_bopper

    (@joe_bopper)

    Hi Abe,

    I’m sorry to say neither of these problems are related to this plugin. This plugin only puts a (WordPress default) search form into your menu. It doesn’t affect how the search results are generated or displayed. Those are defined by WordPress, any search function plugins (usually described as having enhanced search algorithms), and your theme.

    That said, I can give a few pointers:

    * Your first question is regarding the display of search results. The template for that is search.php in your theme’s folder.

    * Your second question is regarding the search algorithm. You can make edits to this using the WP hook pre_get_posts. This can get quite complicated though.

    * If you only ever want products to appear in your search listing, another way to potentially change the results is to add an extra filter to the form that is sent to the server and that is something this plugin can help with. There are a few ways to do this: see here for a detailed response I previously gave on achieving this.

    I hope this helps.

    Cheers,
    Joe

    P.S. I am marking this topic as resolved as the request lies outside the remit of this plugin.

    Thread Starter Abe

    (@abu117)

    thanks Joe ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A couple of questions’ is closed to new replies.