This topic has 8 replies, 2 voices, and was last updated 7 years by Laura.

  • Author
  • #141518
     Michele
    Participant

    Hello,

    Is there a way to duplicate the age field so I can represent two ages per account? Most of the accounts on my site will represent two people and therefore I need to have two age fields.

    The field also needs to be searchable within the search, example:

    Member XProfile:

    Her Age: 32

    His Age: 36

    And an age range in the search:

    Her age: 22 to 39

    His age: 25 to 39

    Then the members loop will display all of the members with her age being in the range of 22 to 39 and his age being in the range of 25 to 39

    If you can just point me to the right file in the theme to edit that would help too but, any more in depth help is also appreciated.

    Thanks!

    Michele

    Michele

    #141819
     Laura
    Moderator

    Hello, you could use number fields for that, but for range fields i would suggest to use bp search plugin.
    You could create an advanced search using https://archived.seventhqueen.com/sweetdate/article/add-advanced-search-members-directory and instead of our horizontal form shortcode, you could add bp search shortcode, i could create this for you with ftp and admin credentials 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #142033
     Michele
    Participant

    I did try the advanced search and got it to work a while ago. Does the advanced search still tie into the “match” system? And can I put an age range in the front homepage form?

    Michele

    Michele

    #142034
     Michele
    Participant
    This reply has been set as private.
    #142297
     Laura
    Moderator

    Hello, the advanced search works perfectly with all as it uses sweetdate horizontal search, but you can use any other search form like bp search
    For more advanced features i suggest to hire a developer that can do it for you 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #148791
     Michele
    Participant

    Hi Laura,
    I am revisiting this as an option to get the multiple age fields searchable on my site.

    I tried implementing the steps to get the advanced search working and ran into a little road block.

    I got the advanced search tab to appear just fine, but nothing happens when I click to open it.

    I also took your advice to utilize the BP Search plugin to create a new form to include the age fields in the search as a range.

    The Bp Search form I made works great… Now I just need to use it as the advanced search.

    How do I add the shortcode to the advanced search?

    Any suggestions as to why the advanced search isn’t working?

    Do you think you could go into my site and add the advanced search code again? Perhaps you did something that I am missing….Perhaps the recent installation of Geo Directory is messing with it??

    Cheers,
    Michele

    Michele

    #148898
     Michele
    Participant

    Laura,
    I played around with this a little more this morning. I turned off my plugins one by one. The Advanced Search is having a conflict with the “Code Snippets” plugin that the team over at Geo Directory installed since I was having a compatibility issue with geo my wp for the members directory and geo directory for my places.

    How do I now fix this compatibility issue with the advanced search and the code snippets plugin?
    Do you have a code snippet similar to Geo Directory to resolve this issue? I need the code snippet to have Geo Directory work with Sweetdate/geomywp.

    Michele

    Michele

    #148899
     Michele
    Participant

    The Adv Search is affected by this code that Geo Directory added:

    function _geowp_dequeue_maps_api() {
    wp_dequeue_script( ‘google-maps’ );
    wp_deregister_script( ‘chosen’ );
    if(defined(‘GEODIRECTORY_VERSION’)){
    wp_register_script(‘chosen’, geodir_plugin_url() . ‘/geodirectory-assets/js/chosen.jquery.min.js’, array(), GEODIRECTORY_VERSION);
    }
    }
    add_action( ‘wp_print_scripts’, ‘_geowp_dequeue_maps_api’, 100 );

    When I remove the code and leave the plugin active, the search works…so I am assuming its an issue with the dequeue function… Not sure how to fix this. It seems like the advanced search is loading with the google geo my wp map. Can we change that? Perhaps that is the fix?

    Michele

    #149204
     Laura
    Moderator

    Hello, the advanced search doesnt use any map, unless you set it that way, basically it just prints the search form inside of an accordion shortcode, but if you edited it to show a map then maybe thats the issue, do you want to show a map at the advanced search? You may need to add it to the shortcode too

    Let me know how do you want it to looks like 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?