I have created a new tab called “Attendees” within my Geodirectory events. I am currently using “WTI Like Post Pro” which is a simple “Like” button, to allow users to add themselves as “Going” to an event. Although this appears to work, I’d much rather utilize the Geodirectory “Favorite” button since this ties to the users buddypress profile.
How would I modify the “Favorite” button so it will retrieve the users “Nice_name” and Avatar and append them in a list under the event’s tab? Even if you could just point me to where the “Favorite” button code lives that would be a big help.
Thank you! You guys have been really great!
Michele
Here is my current code:
add_filter(‘geodir_detail_page_tab_list_extend’, ‘geodir_detail_page_tab_list_extend’);
function geodir_detail_page_tab_list_extend($tab_array) {
if ( ‘gd_event’ == get_post_type() )
$tab_array[‘my_new_tab’] = array(
‘heading_text’ => __(‘Attendees’,GEODIRECTORY_TEXTDOMAIN),
‘is_active_tab’ => false,
‘is_display’ => apply_filters(‘geodir_detail_page_tab_is_display’, true,’my_new_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 ==’my_new_tab’)
{GetWtiLikePost();}
}