Naveen Giri
Forum Replies Created
-
AuthorPosts
-
Please try it,
add_filter('the_content', 'my_nofollow'); add_filter('the_excerpt', 'my_nofollow'); function my_nofollow($content) { global $gd_post; if ( !geodir_is_gd_post_type( 'broker' ) ) { return false; } return preg_replace_callback('/<a[^>]+/', 'my_nofollow_callback', $content); } function my_nofollow_callback($matches) { $link = $matches[0]; $site_link = get_bloginfo('url'); if (strpos($link, 'rel') === false) { $link = preg_replace("%(href=\S(?!$site_link))%i", 'rel="nofollow" $1', $link); } elseif (preg_match("%href=\S(?!$site_link)%i", $link)) { $link = preg_replace('/rel=\S(?!nofollow)\S*/i', 'rel="nofollow"', $link); } return $link; }
Thanks
Hi Eva,
I have added a patch to your site. Please have a look now.
Thanks
Hi Mohammed,
Please have a look. The issue is fixed.
seems it was loading event as default post type on map.
Since map cpt is empty so map was not showing any pin.Regards
NaveenMarch 17, 2020 at 2:16 pm in reply to: Hide a specific category in Drop down for auto submit. #535527Hi Surender,
Please try following snippet.
add_filter( 'rest_gd_placecategory_query', 'rest_gd_placecategory_collection_params_callback', 10, 2); function rest_gd_placecategory_collection_params_callback( $query_params, $request ){ if( isset( $query_params['search'] ) ){ $query_params['exclude'][] = 44; } return $query_params; }
Thanks
Hi Matt,
I am not sure if you have recently done any DB migration. because I had already fixed the same issue before.
Please have a look now and if you still face the issue let me know. I will check another way.
Thanks
March 16, 2020 at 5:58 pm in reply to: File Upload bug: 0 for unlimited uploads doesn't work, but other values do #535443Hi Peter,
Thanks for reporting it. It has been fixed and it will be up in the upcoming GD version.
Regards
NaveenThis reply has been marked as private.Hi Matt, it’s not a valid URL.
I didn’t get, could you please elaborate the issue more.Thanks
Hi Matt,
Please have a look now. there was some DB issue of an undefined column.
fixed now.Regards
NaveenMarch 16, 2020 at 7:17 am in reply to: Undefined offset: 5 in … /class-geodir-location-permalinks.php on line 143 #535372Hi Duane,
on which page you get this Notice? I checked different pages but I am not able to reproduce it.
although I have applied a minor code check based on the Notice.
Let me know if you get it again.Thanks
Hi memorex13,
I see the category has been considered as empty category and hide_empty param of shortcode hiding it in the list.
it seems like a conflict with some plugin code.
to check it further, I will need FTP details.Could you please send FTP details in a private reply.
Regards
NaveenHi lizzafizz,
Please create a new ticket for it. we will be happy to check it.
Thanks
Hi ukvape,
I have reproduced the sitemap issue for CPT locations on my test site.
I have added a fix in the location manager addon. It will up in the upcoming version. if you want me to add fix before that. Please share site credentials in a private reply.
Regards
NaveenHi Alfonso,
as I said, it was caused due to desktop layout HTML is also loaded in the mobile view, although it is hidden.
it creates the js issue for the map.I have added following snippet on your site
https://alefood.com/wp-admin/admin.php?page=edit-snippet&id=6&result=updatedadd_action( 'wp_head', function () { if ( wp_is_mobile() ) { ?> <script> jQuery(document).ready(function(){ console.log('mobile here'); jQuery('.desktop_tab_container').remove(); }); </script> <?php } else{ ?> <script> jQuery(document).ready(function(){ jQuery('.mobile_tab_container').remove(); }); </script> <?php } });
Please have a look on the mobile device now.
Regards
NaveenHi gruppopegaso,
I haven’t noticed such issue on our test site and local.
It should probably be some conflict with existing custom CSS.Glad you found the solution on your own.
Let us know if you need any further help with it. we will be happy to help you on a new support ticket.Regards
Naveen -
AuthorPosts