Inline comments - category display (3 posts)

  1. chefslinejenn
    Posted 7 years ago #

    Im in the final throes with ajaxed. It's a fantastic system. could you though point me in the direction (Im not a programmer) of how to display (versus hide and show) by default all comments for a certain category page? I know it does so for index, pages, and single..

    I tried in inlinecomments.php
    is_category('24') && $awpall['show_comments_page'] == 1) but that shows the most recent comment on most recent post as displayed comment in all posts. But you probably know that! I'd like instead to display all comments for a certain category.

    Is this possible?


  2. Aaron Harun
    Posted 7 years ago #

    For not being a programmer you got very close.

    If I understand you correctly, you want comments to be open by default on a specific category only?

    If so, open : /modules/inlinecomments/inlinecomments.php

    Find (around line 89): if ( (is_single() && $awpall['show_comments_single'] == 1) || (is_page() && $awpall['show_comments_page'] == 1 ) || (is_home() && $awpall['show_comments_home'] == 1 )){

    Replace With:
    if ( is_category('24') || (is_single() && $awpall['show_comments_single'] == 1) || (is_page() && $awpall['show_comments_page'] == 1 ) || (is_home() && $awpall['show_comments_home'] == 1 )){

  3. jennbeez
    Posted 7 years ago #

    Aaron and readers -
    That works perfectly. Thank you! Jenn

Topic Closed

This topic has been closed to new replies.

About this Topic