Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #8414


    Hi agin

    I post this again as it still is not working..

    I tried adding the this code to both includes/loop-portfolio-single.php and includes/loop-index.php:, but nothing happened.

    You wrote:

    I’m not sure which post type: belongs to. Depending on the post type you need to add following code to includes/loop-portfolio-single.php or includes/loop-index.php:


    if(comments_open() || get_comments_number())


    echo “<span class=’comment-container minor-meta’>”;

    comments_popup_link(__(‘this entry has’,’avia_framework’).” <span>0 “.__(‘Comments’,’avia_framework’).”</span>”,

    __(‘this entry has’,’avia_framework’).” <span>1 “.__(‘Comment’ ,’avia_framework’).”</span>”,

    __(‘this entry has’,’avia_framework’).” <span>% “.__(‘Comments’,’avia_framework’).”</span>”,’comments-link’,

    __(‘Comments Off’ ,’avia_framework’));

    echo “</span><span class=’text-sep’>/</span>”;



    Adn this is what I have done before that so far..(

    You wrote:

    1/ in single-portfolio.php replace following code


    //show related posts based on categories if there are any

    get_template_part( ‘includes/related-portfolio-posts’);


    //show related posts based on categories if there are any

    get_template_part( ‘includes/related-portfolio-posts’);

    //wordpress function that loads the comments template “comments.php”

    comments_template( ‘/includes/comments.php’);

    what am I missing?

    / thanks




    so – if I’m still following this right you want to add “this post has X comments” on single portfolio pages? Yes?

    This can be done by adding the code Dude suggested in your topic – PT2 like this:

    All you have to do is: In propulsionincludesloop-portfolio-single.php you have to add

    if(comments_open() || get_comments_number())
    echo "<span class='comment-container minor-meta'>";
    comments_popup_link(__('this entry has','avia_framework')." <span>0 ".__('Comments','avia_framework')."</span>",
    __('this entry has','avia_framework')." <span>1 ".__('Comment' ,'avia_framework')."</span>",
    __('this entry has','avia_framework')." <span>% ".__('Comments','avia_framework')."</span>",'comments-link',
    __('Comments Off' ,'avia_framework'));
    echo "</span><span class='text-sep'>/</span>";

    Right before

    echo '<span class="blog-author minor-meta">'.__('by ','avia_framework');
    echo '</span>';

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘comments in the portfolio – part 3’ is closed to new replies.