Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
@ibn please start your own topic so we can ask for login details in a private reply.
Stiofan
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; }If its installed and active you should not get that message, if its not active its wont check for updates…
Stiofan
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
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
hmm, doing it on searches? Where exactly are u trying to show this?
Stiofan
December 28, 2017 at 9:55 am in reply to: Claim Manager: Facebook image instead of BuddyPress #410704Great! Thanks for sharing your final code 🙂
Stiofan
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
I doubt its worth deleting, it is likely a htaccess rule or a server rule.
Thanks,
Stiofan
December 27, 2017 at 7:31 pm in reply to: Claim Manager: Facebook image instead of BuddyPress #410634Hi 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
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
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.phpThat is why GDB is not working.
For WPI issues please post on the WPI forum (same user details)
https://wpinvoicing.com/support/Thanks,
Stiofan
December 26, 2017 at 4:32 pm in reply to: Sort the listings by the price package through a wigdet #410559This 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
You can use the location tags in the Yoast settings.
Stiofan
Hi Harry,
Merry Christmas 🙂
What theme are u using, do you have a link to your site?
Thanks,
Stiofan
-
AuthorPosts