Title: [Plugin: phpbb_recent_topics] Exclude Multiple Forums
Last modified: August 19, 2016

---

# [Plugin: phpbb_recent_topics] Exclude Multiple Forums

 *  [webbstre](https://wordpress.org/support/users/webbstre/)
 * (@webbstre)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-phpbb_recent_topics-exclude-multiple-forums/)
 * Hi there, I’ve been using this plug-in for months. Currently, I have one forum
   excluded from being displayed, via the script in the FAQ:
 *  $results = $wpdb->get_results(“SELECT * FROM $TOPIC_TABLE WHERE forum_id != 
   1 ORDER BY topic_time DESC LIMIT $LIMIT”);
 * Where 1 is the number of that forum. My question is, Let’s say I want to exclude
   Forum Numbers 2 and 3 as well. What would I change the code to?

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

 *  [linickx](https://wordpress.org/support/users/linickx/)
 * (@linickx)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-phpbb_recent_topics-exclude-multiple-forums/#post-1079831)
 * Hi,
 * Try:
 * … `WHERE forum_id != 1 AND forum_id != 2 AND forum_id != 3 ORDER BY topic_time`…
 * HTH 🙂
    Nick
 *  Thread Starter [webbstre](https://wordpress.org/support/users/webbstre/)
 * (@webbstre)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-phpbb_recent_topics-exclude-multiple-forums/#post-1079832)
 * THANK YOU SO MUCH! You would not believe the number of possible edits me and 
   two other people tried without luck… and we never used the AND thing once 😛

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

The topic ‘[Plugin: phpbb_recent_topics] Exclude Multiple Forums’ is closed to new
replies.

 * 2 replies
 * 2 participants
 * Last reply from: [webbstre](https://wordpress.org/support/users/webbstre/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-phpbb_recent_topics-exclude-multiple-forums/#post-1079832)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
