Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #14226

    I have checked the “Allow Comments” box for this portfolio item: http://www.thevelvetroom.dk/portfolio-item/franny/

    - but comments are not there.

    How do I get them to appear?

    #82545

    Open up includes/loop-portfolio-single.php and replace following code:

    <div class='post-meta-infos'>

    <?php

    with:

    <div class='post-meta-infos'>
    <?php

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

    #82546

    Dude, thanks, but that only gave me the number of comments in the meta info. I would like the comments to actually show below the portfolio item.

    #82547

    Yep – forgot to mention that :)

    Open up single-portfolio.php and replace:

    //show related posts based on categories if there are any
    get_template_part( 'includes/related-posts' );

    with:

    //show related posts based on categories if there are any
    get_template_part( 'includes/related-posts' );

    //wordpress function that loads the comments template "comments.php"
    comments_template( '/includes/comments.php');

    #82548

    That´s it :-)

    Now while we at it, can you tell me how I revove the part under the comment field that looks like this:

    You may use these HTML tags and attributes:
    <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    #82549

    No worries, I found it.

    Thanks!

    #82550

    Hey,

    Glad that is fixed.

    Regards,

    Ismael

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

The topic ‘Comments missing on portfolio item’ is closed to new replies.