Use “do_shortcode()”
This is a standard function in the WordPress API:
https://developer.wordpress.org/reference/functions/do_shortcode/
@stkontra Please try <?php echo do_shortcode(‘[searchandfilter id=”XXX”]’);?>
Hope,It works.
Thank you guys. Yes, I should have thought about it. It worked.
Another problem.
Is there a way to make the title search field search globally not only on the category page it is on?
I know this plugin was meant to be a filter, but the search works well with DIVI Theme Builder pages, where I can’t use woocommerce search widget as it doesn’t work.
So if there is a way to even modify a php file of the plugin, or put in a snippet into the functions.php of the theme, I would really appreciate some help with it.
Basically all I need is to make the query string look like this:
domain.com/shop/?wpf_page=1&id=kereso&wpf=1&wpf_termekkereso=sakk
So start with /shop/ all the time, no matter what page you search on.
-
This reply was modified 5 years, 6 months ago by
stkontra.
@stkontra – Are you referring to the Product Title module (https://share.getcloudapp.com/ApukekeO), it should be global (ie. it should search all products, not just the category that you are viewing). Could you post your site URL where we can see the issue?
Hi Steven,
I did a search on both pages and I see the same results, please see this screen recording and let me know if I’ve missed something: https://share.getcloudapp.com/04uq89X9