SKU/Ref search not working | WordPress.org

[ad_1]

Just noticed is something related to my search box. When using a shortcode, it works just fine.

My test page for reference: https://savassigames.com.br/testes-de-shortcodes/

The last search plugin I used had a functions.php code to replace the theme search with their box, maybe you have something like that I could use? Here’s their code:

add_filter( 'aws_js_seamless_selectors', 'aws_js_seamless_selectors' );
function aws_js_seamless_selectors( $selectors ) {
$selectors[] = 'form.hw-search';
return $selectors;
}

Thanks again!

Hello,

to search by SKU you should enable the appropriate setting in the “Items to search through” tab for the Smart Search widget #1
https://www.wpsmartsearch.com/docs/content-types/#2-toc-title

There is no option to set custom selector via WP filter, but it’s a good idea and I’ll add this feature shortly.

Thank you!

I see, thank you so much, though!

Glad I could give some good idea, then!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer