Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I got some help from a friend. This is how you do it:

    # Run The query
    $results = $wpdb->get_results("SELECT * FROM $TOPIC_TABLE WHERE forum_id != 58
    AND forum_id != 60
    AND forum_id != 62
    AND forum_id != 65
    AND forum_id != 66
    AND forum_id != 67
    AND forum_id != 71
    AND forum_id != 72
    AND forum_id != 74
    AND forum_id != 81 ORDER BY topic_time DESC LIMIT $LIMIT");

    I hope that helps others who are looking to do the same thing!

    Thank you for sharing this! What a godsend.

    I do not know code, I just fiddle. If I wanted to exclude more than one forum, how would I add that to the display.php? I’ve tried a number of things, but my ignorance is limiting my ability.

    I added this:
    $results = $wpdb->get_results("SELECT * FROM $TOPIC_TABLE WHERE forum_id != 60 ORDER BY topic_time DESC LIMIT $LIMIT");

    …But would like to exclude around 15 forums from the recent topic list. Thanks!

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