salsaturation
Forum Replies Created
-
AuthorPosts
-
Thanks Guust… Glad it wasn’t a case of me loosing the plot
Hi Guust
Thanks for confirming – it would be good if there was a way of showing the events. Any idea on a query to loop through the events table and list events based on geodir_link_business field value matching the current post id?
sorry this looks like an issue with my chrome – probably some extensions
please close
sorry this looks like an issue with my chrome – probably some extensions
please close
This is already on the latest releases as far as I remember
July 22, 2014 at 9:17 pm in reply to: Imported Listings, now they all show 404 unless I update each individually?? #9484Have you tried resaving/flushing you permalinks?
This is probably inefficient and really bad but this is what I ended up with to call individual fields… works for me and hope it helps someone or feel free to give me pointers to improve it. Hopefully Vikas will have an easier cleaner way soon
add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ; function geodir_detail_page_tab_list_extend($tab_array) { $tab_array['prices_tab'] = array( 'heading_text' => __('<i class="fa fa-gbp"></i> Prices',GEODIRECTORY_TEXTDOMAIN), 'is_active_tab' => false, 'is_display' => apply_filters('geodir_detail_page_tab_is_display', true, 'prices_tab'), 'tab_content' => '' ); $tab_array['tripadvisor_tab'] = array( 'heading_text' => __('Tripadvisor Reviews',GEODIRECTORY_TEXTDOMAIN), 'is_active_tab' => false, 'is_display' => apply_filters('geodir_detail_page_tab_is_display', true, 'tripadvisor_tab'), 'tab_content' => '' ); return $tab_array ; } add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content'); function geodir_my_new_tab_content($tab_index) { if($tab_index =='prices_tab') { global $wpdb; $id = get_the_ID(); $placePrices = $wpdb->get_var("SELECT geodir_place_price FROM geodir_gd_place_detail WHERE post_id = $id "); $ageRange = $wpdb->get_var("SELECT geodir_age_range FROM geodir_gd_place_detail WHERE post_id = $id "); // Echo the user's email address echo $ageRange; echo $placePrices; } if($tab_index =='tripadvisor_tab') { global $wpdb; $id = get_the_ID(); $freeCats = $wpdb->get_var("SELECT geodir_tripadvisor FROM geodir_gd_place_detail WHERE post_id = $id "); // Echo the user's email address echo $freeCats; } }
Hi Vikas
Thank you very much just tried it and it works perfectly. Can I be a pain and ask if there is anyway we can pull fieldsets (or individual customfields) into the additional tabs?
Thanks
Thomas
I am interested in this as well.
Thanks in advance
Thomas
Hi Vikas
You genius – that works perfectly. I will test it thoroughly and let you know if there are any issues / bugs… but so far it functions exactly how I wanted it to. Thank you so much for the speedy turnaround.
Cheers
Hi Vikas
Thank you for the reply. Yes that would be great. I think it should give a couple of options like
Limit to:
Today
Week
MonthAnd a checkbox to select – Show only Future events:
In the meantime do you know if there is a function I can use to add the text ‘today’, ‘future’, or ‘past’ to the event listing li class so I can hide past and future events via CSS?
Thanks
Thanks Paolo that would be great.
-
AuthorPosts