This topic has 11 replies, 2 voices, and was last updated 9 years, 3 months ago ago by Eva Kemp
Hi Guys, I seem to be having an issue with the search facility on the site.
1) Searching for posts/pages on the backend (WP_Admin) search facilities.
On the backend when you search it does not bring up the page i am looking for even if i type in the
name exactly
2) Searching for anything on the front-end only brings up posts and ignores the pages completely
Please advise urgently
Thanks
Hello,
Please switch to default Twenty Fifteen theme and check backend search. Does the problem persist there too?
To change search on frontend edit the file wp-content/themes/royal/woosearchform.php in line 15 and comment the code
<input type="hidden" name="post_type" value="<?php esc_attr_e( etheme_get_option('search_post_type') ); ?>" />
You’ll have default WordPress search.
Regards,
Eva Kemp.
Hi, i have checked the file and that line is not there completely.
I just have: <input type=”hidden” name=”post_type” value=”product” />
even so the /* */ comments are not working
Thanks
Hello,
Sorry, in older theme version this code is used:
<input type="hidden" name="post_type" value="product" />
You need to remove it.
Please try it and check search form after that.
Regards,
Eva Kemp.
Hi There, iv tried this and it is still bringing up search results for just posts..
Please advise.
Thanks
Hello,
In this case you may try to use some plugin to achieve what you wish.
Please take our apologies for inconveniences.
Regards,
Eva Kemp.
Hi, I have installed Relevanssi (The most popular) search app and configured accordingly….However my pages still do not come up…
Could there be something in the search.php/searchform.php or the functions.php that is preventing these from displaying.
Thanks
Z
Hi, please can I have a response to this?
thanks
Hello,
I’ve edited the page headers/header-structure-1.php in Appearance > Editor and replace the code <?php etheme_search_form(); ?>
with the shortcode of your search plugin `<?php
echo do_shortcode(‘[wp-ultimate-search-bar]’);
?>`
Please check header now.
Regards,
Eva Kemp.
Hi Guys,
I have been trying to get a solution for the search issue. I have used all 3rd party plugins for replacing default wordpress search.
At the moment i am using Relevanssi…It indexes all pages, posts, taxonomies, categories etc etc etc
My search results only ever display the “Posts”
I have gone through all forums in search of a solution. It has come to my attention that the theme could be preventing the Pages from being displayed at all in search results.
Please advise urgently
Hello,
I’ve edited the file wp-content/themes/simulation/searchform.php and commented the code <input type="hidden" name="post_type" value="post" />
in line 13.
Please check search results page now.
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up