Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #402068

    Hi!

    In masonry, for blogposting, normally only appear image preview + tittle + date

    Is possible to add also the number of comments in each post?

    Is possible also to add a little description??

    An structure like this:

    Image preview + tittle + description + number of comments + date

    thank you very much

    best regards!

    #402569

    Hi Pauloflores!

    Thank you for using Enfold.

    It is possible but you need to edit the core theme files. Edit config-templatebuilder > avia-shortcodes > masonry_entries.php. Remove everything and replace it with this: http://pastebin.com/GyAQdEcA

    We added this line:

    $commentCount = get_comments_number($entry->ID);
    				$this->loop[$key]['comment'] 		= "<div class='av-masonry-comment meta-color'>Comments: {$commentCount}</div>";	

    Cheers!
    Ismael

    #402613

    perfect!!! thank you very much ismael!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Show number of comments in masonry’ is closed to new replies.