- Apr 30, 2018
- 1,924
- 1,512
I don't know PHP. I found some codes on StackOverflow and rest is suggested by other BHW members in my last thread. Finally, I came up with this:
It saves perfectly from the WordPress dashboard but shows a critical error on the front end. I would really appreciate if someone helps me with fixing the code
@Reti @kaudo @codemaker, please help me again if you have a minute or two
PHP:
<?php
$ori = the_terms('origin');
if (!empty($ori)) :
?>
<div class="tax"><p class="origin tax-label">Origin</p><p class="tax-link tax-label"><?php the_terms( $post->ID, 'origin', '' ); ?></p></div>
<?php
endif;
}
?>
It saves perfectly from the WordPress dashboard but shows a critical error on the front end. I would really appreciate if someone helps me with fixing the code
@Reti @kaudo @codemaker, please help me again if you have a minute or two