Change Search

Discussion in 'GeoCraft WordPress Theme' started by zweitbuch, Mar 19, 2014.

  1. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    Hello!

    The search does by default just search the "listing titles" right?
    I would like to also search though custom fields, is that somehow possible??
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Custom fields are user defined. So not possible to search on the bases of custom fields.
    Theme search work for
    Listing title, Description, Category, Tags and Address.

    Thanks & Regards
    Nitesh Raghuwanshi
     
  3. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    so couldn't i code something for doing that? or maybe have the description split up in different sections? I am using the template to create a platform where users can buy and sell books, and i would need to have an option where buyers can also search other details of the books than just the description (e.g. author, version, etc.)
     
  4. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    If you are adding listings by yourself then you can include author, version detail in the description.
    Which can be searched by existing search.
    Or
    You can customize theme search from "searchform.php" file.

    Thanks & Regards
    Nitesh Raghuwanshi
     
  5. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    okay so if i open the searchform.php i get the following:

    <form role="search" method="get" id="searchform" action="<?php echo home_url('/'); ?>" >
    <div>
    <input onfocus="if (this.value == '<?php echo SRCH; ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php echo SRCH; ?>';}" value="<?php echo SRCH; ?>" type="text" value="" name="s" id="searchtxt" />
    <input type="submit" id="searchsubmit" value="<?php echo SRCH; ?>" />
    <input type="hidden" name="post_type" value="<?php echo POST_TYPE; ?>" />
    </div>
    </form>


    but how and where can i integrate the function that the search should also search in the custom fields, whats the variable for that?
     
  6. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    plz advice
     
  7. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    plz help!!
     
  8. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    To change or customize searching functionality you can call a free lancer.
    It's a time consuming process. Not possible for us to provide support upto that extent.

    Thanks & Regards
    Nitesh Raghuwanshi
     
  9. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    can i also buy this service from your company?
     
  10. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    plz tell me if i can buy it also??
     
  11. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Sorry but we don't provide such facility.
    You can hire a freelancer for it.

    Thanks & Regards
    Nitesh Raghuwanshi
     
  12. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    okay thats a pity, so i talked to a freelancer and he told me that he needs the file, where the query for the database is done and the database structure! could u tell me that, or do you probably even have information on the structure where the searching process is implemented in the geocraft files?
     
  13. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
  14. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    could u give me some info about that?
     
  15. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    could u help me plz
     

Share This Page