Giri
Forum Replies Created
-
AuthorPosts
-
Hi Nick, just discussed with my team.
You need location manager addon. You might have used that addon and then disabled city, region options
Please activate that addon and then visit Place settings > Custom fields > Address > Enable city option there.
You can deactivate the plugin after that if you don’t want multilocation.
Hope that helps.
Thanks
Hi there,
Please install code snippets plugin and then make a snippet with this following code.
add_filter( 'show_admin_bar', '__return_false' );
Make sure to activate it.
Let me know how that goes.
Thanks
Hi there,
Your site seems like it uses both GD booster and Autoptimize cache.
You should use either GD Booster or WP Super Cache with autoptimize.
Please try disabling Autoptimize and clearing the cache.
Thanks
Follow these steps for alphabetical order.
File: wp-content/plugins/geodirectory/geodirectory-functions/general_functions.php
Function: geodir_popular_post_category_output()
Inside that function replace the following part
foreach ( $a_terms as $b_key => $b_val ) { $b_terms[ $b_key ] = geodir_sort_terms( $b_val, 'count'); }
with
$sort_by = apply_filters('geodir_pp_category_sort', 'count'); foreach ( $a_terms as $b_key => $b_val ) { $b_terms[ $b_key ] = geodir_sort_terms( $b_val, $sort_by ); }
On the same file find this function geodir_sort_terms
Replace this code
function geodir_sort_terms( $terms, $sort = 'count' ) { if ( $sort == 'count' ) { return geodir_sort_terms_by_count( $terms ); } if ( $sort == 'review_count' ) { return geodir_sort_terms_by_review_count( $terms ); } }
with
function geodir_sort_terms( $terms, $sort = 'count' ) { if ( $sort == 'count' ) { return geodir_sort_terms_by_count( $terms ); } if ( $sort == 'review_count' ) { return geodir_sort_terms_by_review_count( $terms ); } return $terms; }
Once thats done, add the following code in code snippet plugin.
add_filter("geodir_pp_category_sort", "modify_geodir_pp_category_sort"); function modify_geodir_pp_category_sort() { return "alpha"; }
Thats all.
July 4, 2017 at 10:51 am in reply to: add star rating under event title, add individual rating summary #385655I’m not sure which page you are talking about. Please provide link.
Thanks.
Yes you need to create a child theme to customize or you can also use code snippets plugin.
https://wordpress.org/plugins/code-snippets/
Thanks
Hi Nick, I don’t quite understand your address structure.
I see different address in sidebar and different address in the featured area. (right next to author avatar)
Did you customize those parts by adding any snippets?
Please elaborate what you did. So I can assist you better.
Thanks
You are welcome.
Yep, thats cool 🙂
Hi Whoop has been built on top of Redux framework. In other words whoop settings pages use redux framework.
Hope that helps.
Hi there,
Thanks for your feedback.
At the moment I’m tied with UsersWP project and its addons. So its not possible to jump into whoop and work on it. It might take few months to work on whoop again.
Sorry about that.
Thanks
Hi Robert,
Replace Guust code with this one
// this is the snippet that adds the filter, calling the function below. add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend2') ; // this is the function that does the re-ordering that we call with the add filter snippet above. function geodir_detail_page_tab_list_extend2($tab_array) { // here you can modify the array and re-arrange tabs as you wish, you can create a completely new array too. // this is the map tab, by default is the 6th, but here we moved it to position 1 and made it the active tab. if(isset($tab_array['post_map'])){ $new_tab_array['post_map'] = $tab_array['post_map'];// set in new array // IMPORTANT the following code tells GeoDirectory that this is the new default active tab $new_tab_array['post_map']['is_active_tab']='1'; unset($tab_array['post_map']);//unset in old one } // this is the review tab, by default is the 7th, but here we moved it to position 2. if(isset($tab_array['reviews'])){ $new_tab_array['reviews'] = $tab_array['reviews'];// set in new array unset($tab_array['reviews']);//unset in old one } // this is the post profile tab, by default is the 1st if(isset($tab_array['post_profile'])){ $new_tab_array['post_profile'] = $tab_array['post_profile']; // set in new array // IMPORTANT the following code tells GeoDirectory that this is no longer the default active tab $new_tab_array['post_profile']['is_active_tab']=''; unset($tab_array['post_profile']);//unset in old one } // this is the post info tab (optional for custom fields), by default, if available, is the 2nd. if(isset($tab_array['post_info'])){ $new_tab_array['post_info'] = $tab_array['post_info'];// set in new array unset($tab_array['post_info']);//unset in old one } // this is the images tab, by default is the 3rd if(isset($tab_array['post_images'])){ $new_tab_array['post_images'] = $tab_array['post_images'];// set in new array unset($tab_array['post_images']);//unset in old one } // this is the video tab, appears only if there are videos and by default is the 4th if(isset($tab_array['post_video'])){ $new_tab_array['post_video'] = $tab_array['post_video'];// set in new array unset($tab_array['post_video']);//unset in old one } // this is the speacial offer tab, appears only if there are special offers and by default is the 5th if(isset($tab_array['special_offers'])){ $new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array unset($tab_array['special_offers']);//unset in old one } // this is the related listing tab, it is optional and by default is the 8th if(isset($tab_array['related_listing'])){ $new_tab_array['related_listing'] = $tab_array['related_listing'];// set in new array unset($tab_array['related_listing']);//unset in old one } // now we set any remaining tabs that have not been assigned an order foreach($tab_array as $key=>$tab){ $new_tab_array[$key]=$tab; } return $new_tab_array ; }
You are welcome 🙂
You are welcome Tania
You are welcome.
-
AuthorPosts