[Support request] Search Results – Custom Post Types

Home Forums Support [Support request] Search Results – Custom Post Types

Home Forums Support Search Results – Custom Post Types

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #675347
    Brett

    We setup a custom post type called “Products” and associated each product with a category. Note: We are using ACF Pro fields for inputting almost all the data on the CPT.

    The next step was to create a new template to query by “Product” posts by category and display them. When we go to search for a specific product, the results show the CPT individual post but not the reference to the page(s) that uses the query in the template.

    We tried the “exclude_from_search” setting on the CPT registration, but all that did was eliminate the individual post from the results.

    How can we get the pages (associated with the template) to show and not the individual posts to show in the search results?

    Thank you!

    #675906
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    I’m not sure I completely understand. You don’t want the search to include the single products? Instead, you want the search to pick up the page that displays the products?

    #676179
    Brett

    Yes, that is what I’ve been asked to make happen. Any ideas on how to make that happen?

    #676467
    Tom
    Lead Developer
    Lead Developer

    Any chance you can link me to one of the pages you want to include in the results?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.