Home Page 8DegreeThemes Forum Premium Themes EightMedi Pro single-doctor.php

  • Author
  • #4578
    PurchasedEightMedi Pro(Expired)

    Hi, my blog address is
    I’ve tried to delete “departement” in the doctors slide, but something is gone wrong and now I don’t know what was the original code. So, when I click on the doctors photos i see this message:
    “Parse error: syntax error, unexpected ‘<‘ in /home/studi005/public_html/wp-content/themes/eightmedi-pro/single-doctor.php on line 51”
    I changed something here:
    echo ‘slug, ‘doctor-category’).'”>’;
    echo ‘<span>’.$cat->name.'</span>’;
    echo ‘
    <span><?php echo __(‘Department’,’eightmedi-pro’);?></span>;


    please can you tell me which was the original code?
    thank you

  • #4580
    8Degree Themes
    8Degree Themes

    Hi there,

    Thank you for writing in.

    Can you please try to add following code:

    <div class="doctor-specialization">
    							<span><?php echo get_post_meta( $post->ID, 'eightmedi_pro_doctor_box_specialization', true ); ?></span>
    							<br />
    							$cats = wp_get_object_terms( $id, 'doctor-category' ) ;
    							foreach($cats as $cat){
    								echo '<a href="'.get_term_link($cat->slug, 'doctor-category').'">';
    								echo '<span>'.$cat->name.'</span>';
    								echo '</a>';
    							<span><?php echo __('Department','eightmedi-pro');?></span>

    If you find again this error then please fell free to ask us.

    Thank You!!

You must be logged in to reply to this topic.

Please post your questions in the respective forum above.

All questions related to our Pro theme will be answered in less than 24 hours. All questions related to our Free theme will be answered in less than 48 hours.
Our Facebook page is the best place to get updated with themes, documentation, question/answers. Please like us here:

8 Reasons to choose

Instant Updates

Many free themes, only buy themes when you are ready!

Subscribe for newsletter