Stiofan O'Connor

Forum Replies Created

Viewing 15 posts - 211 through 225 (of 13,774 total)
  • Author
    Posts
  • in reply to: Breadcrums leading to 404's #516585

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Marcus,

    I have replied to your email.

    Thanks,

    Stiofan

    in reply to: Filters questions #516322

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Not tested but something like this

    // Add cat id as body class
    add_filter( 'body_class', '_my_cat_body_class');
    function _my_cat_body_class($classes){
        
        if(is_tax() || !empty($_REQUEST['spost_category']) ){
            $tax_id = isset($_REQUEST['spost_category']) ? absint($_REQUEST['spost_category']) : get_queried_object_id();
            $classes[] = 'catid-'.$tax_id
        }
    
        $classes;
    }

    The above will add a class per category to the body so you could then use CSS to show/hide each filter somthing like,

    body.catid-123 .geodir-filter-container .gd-field-special_offers,
    body.catid-321 .geodir-filter-container .gd-field-special_offers{
    display:none;
    }

    Thanks,

    Stiofan

    in reply to: Add no follow to external links #515927

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    no, not sure how u got to that conclusion…

    This will remove it for all, you can add in your own conditions if u want to block it for some urls or fields.

    add_filter('geodir_custom_field_output_url','_my_remove_nofollow_from_urls',15,5);
    function _my_remove_nofollow_from_urls($html,$location,$cf,$p='',$output=''){
    
    if(isset($cf['htmlvar_name']) ){
       $html = str_replace('rel="nofollow"', '', $html);
    }
       return $html;
    }

    Stiofan

    in reply to: Add no follow to external links #515900

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You could do it either way, you could have a include or exclude list.

    Stiofan

    in reply to: Text field #515880

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    For security is it stripping the input button, it would be best to use the actual button tag instead of an input tag like:

    Thanks,

    Stiofan

    in reply to: Move Comment/Review section within Listing Details page #515708

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Jorge,

    If you remove the comments from the tabs it will use the theme location which will likely be at the bottom of the page as you wish.

    Stiofan

    in reply to: geo directory video embed container #515707

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Please try

    .geodir-embed-container{
        padding-bottom: unset;
    }

    Stiofan

    in reply to: Text field #515706

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    In the field advanced setting try ticking “Embed Media URLs” this allows more HTML to be added.

    If that does not work please provide wp-admin details in a private reply and we will have a look.

    Thanks,

    Stiofan

    in reply to: http error and unknown error #515704

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Cara,

    This can show if you were logged out or logged in as another user in the middle of adding a listing, please check.
    I was able to add images with no issues.

    Thanks,

    Stiofan

    in reply to: 2 recptchas on add listing page #515679

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The issue seems to be a conflict with the “User submitted posts” plugin.

    If you can disable that then great, if not i would suggest disabeling the recaptcha on add listing.

    @alex for the registration block render i have fixed this and it will be in the next release.

    Thanks,

    Stiofan


    Stiofan O’Connor
    Site Admin
    Post count: 22956

    We have a task for better Integration here, we will update you here once done.

    Thanks,

    Stiofan

    in reply to: Listings search… #515674

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Rodney,

    We have an open task for this but it is not currently implemented for the posts route, but it is possible on the markers route like /wp-json/geodir/v2/markers/?post_type=gd_place&lat=55.6789&lon=-4.1234&term[]=4&term[]=10

    For search just add “&search=term”

    Thanks,

    Stiofan

    in reply to: Profile page issues #515583

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi,

    For the counts if your simply want to remvoe it you can add this code snippet

    add_filter( 'uwp_get_user_post_counts', '__return_empty_array' );

    Or if you want to remove say events you would do this

    
    
    add_filter( 'uwp_get_user_post_counts', '_my_edit_uwp_post_counts',10,2 );
    function _my_edit_uwp_post_counts($counts, $post_types){
        
        if(isset($counts['gd_event'])){unset($counts['ge_event']);}
    
        return $counts;
    }

    Thanks,

    Stiofan

    in reply to: just bought membership #515535

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    If you bought a membership then rest assured that you can use it on any number of your sites.

    I will get the wording fixed in the email.

    Thanks,

    Stiofan

    in reply to: Add no follow to external links #515532

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    We don’t have a setting for that yet but you can use a filer (not tested) something like

    add_filter('geodir_custom_field_output_url','_my_remove_nofollow_from_urls',15,5);
    function _my_remove_nofollow_from_urls($html,$location,$cf,$p='',$output=''){
    
    if(isset($cf['htmlvar_name']) && $cf['htmlvar_name']=='facebook){
       $html = str_replace('rel="nofollow"', '', $html);
    }
       return $html;
    }

    Stiofan

Viewing 15 posts - 211 through 225 (of 13,774 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount