Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #408556

    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.

    #409039

    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

    #410393

    Thanx a lot, I’ll try that !

    #410623

    Great, let us know how it goes :)

    Cheers!
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.