Support » Fixing WordPress » Inline comments – category display

  • Hi!
    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?

    THANKS!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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 )){

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Inline comments – category display’ is closed to new replies.