Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
Hi Marcus,
I have replied to your email.
Thanks,
Stiofan
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
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
You could do it either way, you could have a include or exclude list.
Stiofan
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
November 2, 2019 at 6:40 pm in reply to: Move Comment/Review section within Listing Details page #515708Hi 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
Please try
.geodir-embed-container{ padding-bottom: unset; }
Stiofan
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
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
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
November 2, 2019 at 11:49 am in reply to: Buddypress Notifications to GD Listing Author of comment submitted on listing #515675We have a task for better Integration here, we will update you here once done.
Thanks,
Stiofan
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
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
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
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
-
AuthorPosts