I was planning on using the site wide search for the shop exclusively, so having both the shop search bar and the menu search bar return products would be my ideal solution. Can you please help see where I've gone wrong?
I do have CPanel which has all the site files there too if this works as an FTP. However, I don't feel comfortable handing out access to that as It's my clients account; I'm building the site for him.
If it's too complicated to explain, I may just have to purchase a Woo Plugin for searchability—unless I can make the general site search not exclusively return products, but at least include products?
Hi there,
Just wondering if I can filter what the theme's search query returns. Ideally i'd like to use it exclusively to display shop/product results.
Hi,
You can use this filter:
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver
thanks Gregor,
Just a noob question though... where would I paste that code?
Hi,
Add it to the functions.php of the child theme.
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver
Hi Gregor,
I added the code to the end of the Functions.php file, but the search still only returns a post.
If you search for "wall" on the shop page you will see what I mean. http://mykitchen.nz/mykitchenshop/
I was planning on using the site wide search for the shop exclusively, so having both the shop search bar and the menu search bar return products would be my ideal solution. Can you please help see where I've gone wrong?
Hi,
pls. provide the wp-admin and FTP access
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver
Hi there,
please use the user name: Temporary with PW: wD(PUrkm!WTL#pHlL@$7hzbP
I don't have FTP access myself, though.
It's very dangerous to edit the php file via the wp editor, can you contact to your hoster and ask him the FTP access?
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver
I do have CPanel which has all the site files there too if this works as an FTP. However, I don't feel comfortable handing out access to that as It's my clients account; I'm building the site for him.
If it's too complicated to explain, I may just have to purchase a Woo Plugin for searchability—unless I can make the general site search not exclusively return products, but at least include products?
Hi,
The filter I gave you should work, I've tested it on our local install in order to find the problem I need access to the files.
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver