• Hello, is there a way to make the global search for all post types + the WooCommerce SKU?

    • If I enable “Optimize for Products Search”, it only allows post types products and variations, so it doesn’t search in posts, pages and other custom post types.
    • If I disable “Optimize for Products Search” I can select post types posts, pages, products and other custom post types, but then it doesn’t let me select the Meta Key Name _SKU.

    Thanks

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

    (@5um17)

    Hi John,

    Basically, Optimize for Products Search does more than just enabling the fields. It alters the WP query so it can be treated as a WC query and then the WC layout is displayed on the front end.

    Suppose, If plugins allow you to select more post types with products then WC will throw errors on the front end because other posts do not have product-related data.

    What you can do you can insert custom fields in the global search setting using this filter hooks https://wpes.secretsofgeeks.com/hooks#wpes_meta_keys but please note the product on front-end will be displayed as a normal post, not as the product.

    Thanks

    Thanks. Meanwhile I have found another plugin that does what I need.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Global search for all post types + _SKU’ is closed to new replies.