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

    Hi,

    I use tags to populate my masonry portfolio.

    Is there a way to show the tags on the masonry blocks beneath the title and excerpt?

    E.g. as below on your demo:

    thanks.

    #439441

    Hey!

    It is possible but i don’t think it will work as you think as the whole tile is a hyperlink (pointing to the masonry item), the tags won’t be clickable.

    Regards,
    Josue

    #439461

    That’s fine, I don’t need it to be clickable. I simply want it to show which tags relate to that project.

    #439471

    Hey!

    Put this after line 786 in /config-templatebuilder/avia-shortcodes/masonry_entries.php:

    $terms = wp_get_post_terms($id, 'portfolio_entries');
    ob_start();
    if ($terms) {
        $out = array();
        foreach ($terms as $term) {
            $out[] = $term->name;
        }
        echo join( ', ', $out );
    } 
    $the_terms_output = ob_get_clean();
    $this->loop[$key]['text_after'] .= $the_terms_output;

    Best regards,
    Josue

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