Content after description
This topic contains 1 reply, has 2 voices, and was last updated by Alex Rollin 5 years, 10 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
May 24, 2019 at 8:50 am #488577
Hello,
We’re working on customizing the profile tab using posts we found in the support forum (https://wpgeodirectory.com/support/topic/customizing-the-profile-tab-of-the-details-page/).
Everything works Ok, but what we need to place the news shortcode we have below the event/member description.
Here’s where we’re working:
https://staging3.ebeautyplanet.fr/professionals/medecin-esthetique/dr-eric-menouillard/And here is the code:
add_action('geodir_before_description_on_listing_detail', 'gd_profile_custom_content'); function gd_profile_custom_content() { global $post; ?> <br> <?php $meta_value = geodir_get_post_meta($post->ID, 'post_title', true ); ?> <?php if (!empty( $meta_value )): ?> <p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:22px;margin-bottom:0px;"> <?php echo geodir_get_post_meta($post->ID, 'post_title', true ); ?></p> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_professional_profession', true ); ?> <?php if (!empty( $meta_value )): ?> <div class="column"><p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;margin-bottom:0px;">Profession:</p> <?php echo geodir_get_post_meta($post->ID, 'geodir_professional_profession', true ); ?></div> <br> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_website', true ); ?> <?php if (!empty( $meta_value )): ?> <div class="column"><p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;margin-bottom:0px;">Site Web:</p> <?php echo geodir_get_post_meta($post->ID, 'geodir_website', true ); ?> </div> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'post_address', true ); ?> <?php if (!empty( $meta_value )): ?> <div class="column"><p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;margin-bottom:0px;">Adresse:</p> <?php echo geodir_get_post_meta($post->ID, 'post_address', true ); ?><?php echo ",";?> <?php echo geodir_get_post_meta($post->ID, 'post_city', true ); ?><?php echo ",";?> <?php echo geodir_get_post_meta($post->ID, 'post_region', true ); ?><?php echo ",";?> <?php echo geodir_get_post_meta($post->ID, 'post_zip', true ); ?><?php echo ",";?> <?php echo geodir_get_post_meta($post->ID, 'post_country', true ); ?> </div> <br> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_timing', true ); ?> <?php if (!empty( $meta_value )): ?> <div class="column"><p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;margin-bottom:0px;">Horaires d’ouverture:</p> <?php echo geodir_get_post_meta($post->ID, 'geodir_timing', true ); ?></div> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_contact', true ); ?> <?php if (!empty( $meta_value )): ?> <p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;">Téléphone:</p> <div> <?php echo geodir_get_post_meta($post->ID, 'geodir_contact', true ); ?> </div> <br> <hr> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_professional_practice', true ); ?> <?php if (!empty( $meta_value )): ?> <p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;margin-bottom:0px;">Cabinet:</p> <?php echo geodir_get_post_meta($post->ID, 'geodir_professional_practice', true ); ?> <br> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_professional_banner', true ); ?> <?php if (!empty( $meta_value )): ?> <br> <hr> <br>
ID, 'geodir_professional_banner', true ); ?>" width="100%"/> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_brands_company_banner', true ); ?> <?php if (!empty( $meta_value )): ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_professional_about', true ); ?> <?php if (!empty( $meta_value )): ?> <p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;">À Propos:</p> <?php echo geodir_get_post_meta($post->ID, 'geodir_professional_about', true ); ?> <br> <hr> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_professional_education', true ); ?> <?php if (!empty( $meta_value )): ?> <p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;">Éducation:</p> <div> <?php echo geodir_get_post_meta($post->ID, 'geodir_professional_education', true ); ?> </div> <br> <hr> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_professional_awards_recognitions', true ); ?> <?php if (!empty( $meta_value )): ?> <p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;">Prix et Reconnaissances:</p> <div> <?php echo geodir_get_post_meta($post->ID, 'geodir_professional_awards_recognitions', true ); ?> </div> <br> <hr> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_professional_memberships_associations', true ); ?> <?php if (!empty( $meta_value )): ?> <p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;">Adhesions et Associations:</p> <div> <?php echo geodir_get_post_meta($post->ID, 'geodir_professional_memberships_associations', true ); ?> </div> <br> <hr> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_professional_services', true ); ?> <?php if (!empty( $meta_value )): ?> <p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;">Services:</p> <div> <?php echo geodir_get_post_meta($post->ID, 'geodir_professional_services', true ); ?> </div> <br> <hr> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_professional_products', true ); ?> <?php if (!empty( $meta_value )): ?> <p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;">Produits:</p> <div> <?php echo geodir_get_post_meta($post->ID, 'geodir_professional_products', true ); ?> </div> <br> <hr> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_professional_cosmetic_surgery_treatments', true ); ?> <?php if (!empty( $meta_value )): ?> <p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;">Traitements de Chirurgie Esthétique:</p> <div> <?php echo geodir_get_post_meta($post->ID, 'geodir_professional_cosmetic_surgery_treatments', true ); ?> </div> <br> <hr> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_professional_aesthetic_treatments', true ); ?> <?php if (!empty( $meta_value )): ?> <p style="font-family:lato;font-weight:400;color:#845185;line-height:26px;font-size:18px;">Traitements Esthétique:</p> <div> <?php echo geodir_get_post_meta($post->ID, 'geodir_professional_aesthetic_treatments', true ); ?> </div> <br> <hr> <br> <?php endif; ?> <?php $meta_value = geodir_get_post_meta($post->ID, 'geodir_post_tag', true ); ?> <?php if (!empty( $meta_value )): ?> <?php echo do_shortcode('[newsbox style="nb6" display="tag" tag="'.geodir_get_post_meta($post->ID, 'geodir_post_tag', true).'" number_of_posts="3" title="Dernières Parutions"]'); ?> <?php endif; ?> <?php }
May 24, 2019 at 11:27 am #488611OK, our doc about customizing the detail template for GDV1 is here:
https://wpgeodirectory.com/docs/customizing-geodirectory-templates/You will want to customize the detail template to achieve your goal.
If you need hands-on help with customization please contact an expert here:
https://geodirectoryexperts.com/ -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket