Tagged: Portfolio
Hello
When I click on a picture in Portfolio gird, I configure Enfold to open the ajax preview.
Under the title of this preview, I would like to have the taxonomy term, with link to the taxonomy page.
After searching, I think I should insert this kind of code :
<?php echo term_description(); ?>
But where ?
Thanx a lot.
Hi romano2!
In /enfold/config-templatebuilder/avia-shortcodes/portfolio.php, around line 720:
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'>".$entry->post_title."</a></h2>";
But you’d first need to get the taxonomy ID in order to get term_description
to work. You can use this function for that – http://codex.wordpress.org/Function_Reference/wp_get_post_terms
Regards,
Josue
Thanx a lot, I’ll try that !
Great, let us know how it goes :)
Cheers!
Josue