Search Facilty – Front and Backend

This topic has 11 replies, 2 voices, and was last updated 8 years, 8 months ago ago by Eva Kemp

  • Avatar: zf
    zf
    Participant
    July 20, 2015 at 08:51

    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

    Please, contact administrator
    for this information.
    10 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    July 20, 2015 at 10:18

    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.

    Avatar: zf
    zf
    Participant
    July 22, 2015 at 08:06

    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

    Avatar: Eva
    Eva Kemp
    Support staff
    July 22, 2015 at 12:17

    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.

    Avatar: zf
    zf
    Participant
    July 23, 2015 at 10:00

    Hi There, iv tried this and it is still bringing up search results for just posts..

    Please advise.

    Thanks

    Avatar: Eva
    Eva Kemp
    Support staff
    July 23, 2015 at 13:55

    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.

    Avatar: zf
    zf
    Participant
    July 24, 2015 at 13:36

    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

    Avatar: zf
    zf
    Participant
    July 27, 2015 at 08:19

    Hi, please can I have a response to this?

    thanks

    Avatar: Eva
    Eva Kemp
    Support staff
    July 27, 2015 at 13:02

    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.

    Avatar: zf
    zf
    Participant
    August 13, 2015 at 09:52

    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

    Avatar: Eva
    Eva Kemp
    Support staff
    August 13, 2015 at 14:15

    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.

  • Viewing 11 results - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.