Stiofan O'Connor

Forum Replies Created

Viewing 15 posts - 2,866 through 2,880 (of 13,774 total)
  • Author
    Posts
  • in reply to: Blank Page – Listing Success #410867

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    @ibn please start your own topic so we can ask for login details in a private reply.

    Stiofan

    in reply to: Exclude Listings #410864

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Again not tested but try replacing it with this:

    
    
    add_action('pre_get_posts', '_my_geodir_listing_loop_filter', 2);
    
    function _my_geodir_listing_loop_filter($query){
    if (isset($query->query_vars['is_geodir_loop']) && $query->query_vars['is_geodir_loop'] && !is_admin()) {
    add_filter( 'posts_where' , '_my_post_exclude_where' );
    
    }
    
    return $query;
    }
    function _my_post_exclude_where($where)
    {
        global $wp_query,$table_prefix;
        $post_type = isset($wp_query->query['post_type']) ? $wp_query->query['post_type'] : '';
        $post_types = geodir_get_posttypes();
        if ($post_type && in_array($post_type, $post_types)){
            $where .= " AND ".$table_prefix.$post_type."_detail.package_id != 2 ";
        }
    
        return $where;
    }
    in reply to: WP Easy Uploads conflict with GiveWP? #410835

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    If its installed and active you should not get that message, if its not active its wont check for updates…

    Stiofan

    in reply to: Exclude Listings #410831

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi James,

    Not tested but something like this:

    
    
    add_filter( 'posts_where' , '_my_post_exclude_where' );
    function _my_post_exclude_where($where)
    {
        global $wp_query,$table_prefix;
        $post_type = isset($wp_query->query['post_type']) ? $wp_query->query['post_type'] : '';
        $post_types = geodir_get_posttypes();
        if ($post_type && in_array($post_type, $post_types)){
            $where .= " AND ".$table_prefix.$post_type."_detail.package_id != 2 ";
        }
    
        return $where;
    }

    Thanks,

    Stiofan

    in reply to: Exclude Listings #410749

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    wordfence is blocking my location (UK).

    But if you want to filter by GD custom fields you will need to do a custom query not a standard WP loop. If you install something like “Query monitor” plugin it will show u the current main queries to give you an idea.

    Thanks,

    Stiofan

    in reply to: Exclude Listings #410725

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    hmm, doing it on searches? Where exactly are u trying to show this?

    Stiofan

    in reply to: Claim Manager: Facebook image instead of BuddyPress #410704

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Great! Thanks for sharing your final code 🙂

    Stiofan

    in reply to: Exclude Listings #410703

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There is not settings for this but it could be done via hooks, but i’m not sure i get why you are doing it?

    Thanks,

    Stiofan

    in reply to: Boost and SSL #410642

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I doubt its worth deleting, it is likely a htaccess rule or a server rule.

    Thanks,

    Stiofan

    in reply to: Claim Manager: Facebook image instead of BuddyPress #410634

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Marc,

    SD uses “get_avatar” by default which i think is the best way.
    There is a hook to be able to replace the image, below is a example that might work (not tested):

    
    
    add_filter('sd_detail_entry_author','_my_change_sd_avatart_to_bp');
    function _my_change_sd_avatart_to_bp($html){
    global $post;
    $author_id = $post->post_author;
    $avatarurl = bp_core_fetch_avatar( array( 'item_id' => $author_id, 'html' => true ) );
    if($avatarurl){$html = $avatarurl;}
    return $html;
    }

    Thanks,

    Stiofan

    in reply to: MaxCDN #410628

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Eduardo,

    GDB does not have sharding, and i don’t know of any caching plugins that do (i have not looked though)

    For the second part, i have not used this feature so could not comment.

    Thanks,

    Stiofan

    in reply to: Boost and SSL #410627

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Mike,

    Your server seems to be restricting the files in the plugin folder
    /wp-content/plugins/geodir_gd_booster/booster_css.php
    /wp-content/plugins/geodir_gd_booster/booster_js.php

    That is why GDB is not working.

    For WPI issues please post on the WPI forum (same user details)
    https://wpinvoicing.com/support/

    Thanks,

    Stiofan

    in reply to: Sort the listings by the price package through a wigdet #410559

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    This is not possible at the moment, if you required that you would need to implement it yourself, by copying the original widget and adding your own queries.
    It is something we will look at implementing in the future.

    Thanks,

    Stiofan

    in reply to: Automatically generating of additional categories #410558

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You can use the location tags in the Yoast settings.

    Stiofan

    in reply to: Font Colors #410449

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Harry,

    Merry Christmas 🙂

    What theme are u using, do you have a link to your site?

    Thanks,

    Stiofan

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