I found 404 page search engine doesn’t work?
1). I’ve set theme options > header > search post type as product, but no matter I input product key words or page key words it doesn’t work.
2). If I want to remove the search engine from 404 page, how to do that?
Yes, I didn’t set search box in my website.
But in 404 page, there is a search box by default.
I try the search box from 404 page.
I’ll try it, thank you.
What if I want 404 page search box could work to search products “or” page contents?
Is that possible to add search box with “Product” and “Page” as drop box value to be selected?
Back to the 404 page search problem, Why it always search by “post”? I want that 404 page search box could work as “product” search just like I set at『options > header > search post type as product』.
How to do that?
Please try to edit the file wp-content/themes/woopress/searchform.php and replace the line 13
<input type="hidden" name="post_type" value="post" /> with this code
<input type="hidden" name="post_type" value="<?php esc_attr_e( etheme_get_option('search_post_type') ); ?>" />
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty
Seems you did not register purchase code for WooPress WordPress Support Forum to be able to create a topic on this forum.