Leon Vincent

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: displaying listings outside GD pages filtered by location. #416485

    Leon Vincent
    Expired Member
    Post count: 4

    Thank you for your reply Alex.

    Good news that this is coming in V2. Any guess when it is coming out?

    For now, i think i will work it out using the category option.

    in reply to: Conditinal custom fields in search #409107

    Leon Vincent
    Expired Member
    Post count: 4

    Yet, i have 2 CPT and 6 Categories.

    in reply to: Conditinal custom fields in search #406404

    Leon Vincent
    Expired Member
    Post count: 4

    Hi,

    The site is not up yet.

    The custom field css class is place_has, which then becomes .gd-field-geodir_Place_has by the plugin.

    This piece of code shows the custom fields only when the category with value “18” is selected from the dropdown and hides it otherwise.

    jQuery(document).ready(function( $ ){
    $(‘.geodir-filter-cat.gd-type-single.gd-field-geodir_Place_has’).hide();
    $(‘.cat_select’).change(function(){
    if($(‘.cat_select’).val() == ’18’) {
    $(‘.geodir-filter-cat.gd-type-single.gd-field-geodir_Place_has’).show();
    } else {
    $(‘.geodir-filter-cat.gd-type-single.gd-field-geodir_Place_has’).hide();
    }
    });
    });

    And since i will add more custom fields for each category, i will use “else if” to add more conditions.

    in reply to: Conditinal custom fields in search #406282

    Leon Vincent
    Expired Member
    Post count: 4

    I see.

    Creating a CPT for each category with different custom fields is not practical i guess.

    I used jQuery to hide filters based on the category dropdown selection. It works fine. I just hope it does not cause any problems later.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount