I realize this may be beyond this forum’s support scope but I figured it was worth asking. I created a custom field for a user to upload a logo to their listing if they are a paid listing. Right now the logo appears on the bottom on the bio, you can see here:
http://new.electronichouse.com/places/united-states/georgia/atlanta/listing-audio/atlanta-audio-automation/
I was told to find a way to put this before the description. I was hoping you had a hook like before_description or something. Any ideas?
Also here is the code I’m using in my functions.php
//Add service area tab to GeoDirectory listing page
add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend_service');
function geodir_detail_page_tab_list_extend_service($tab_array) {
global $wpdb;
$id = get_the_ID();
$ServiceArea = $wpdb->get_var("SELECT geodir_service_area FROM wp_geodir_gd_place_detail WHERE post_id = $id ");
if ($ServiceArea !=''){
$tab_array['service_area_tab'] = array(
'heading_text' => __('Service Area',GEODIRECTORY_TEXTDOMAIN),
'is_active_tab' => false,
'is_display' => apply_filters('geodir_detail_page_tab_is_display', true,'service_area_tab'),
'tab_content' => '');
return $tab_array;
}
else {return $tab_array;}
}
//Add Content to GeoDirectory Tabs
add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content');
function geodir_my_new_tab_content($tab_index) {
if($tab_index =='testimonials_tab'){
global $wpdb;
$id = get_the_ID();
$CustomerTestimonials = $wpdb->get_var("SELECT geodir_testimonials FROM wp_geodir_gd_place_detail WHERE post_id = $id ");
echo $CustomerTestimonials;
}
if($tab_index =='service_area_tab'){
global $wpdb;
$id = get_the_ID();
$ServiceArea = $wpdb->get_var("SELECT geodir_service_area FROM wp_geodir_gd_place_detail WHERE post_id = $id ");
echo $ServiceArea;
}
if($tab_index =='post_profile'){
global $wpdb;
$id = get_the_ID();
$DirectoryLogo = $wpdb->get_var("SELECT geodir_directory_listing_logo FROM wp_geodir_gd_place_detail WHERE post_id = $id ");
if ($DirectoryLogo) {
echo '<img src="';
echo $DirectoryLogo;
echo '"/>';}
}
}