• 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)
  • Hi,

    Try:

    WHERE forum_id != 1 AND forum_id != 2 AND forum_id != 3 ORDER BY topic_time

    HTH ??
    Nick

    Thread Starter webbstre

    (@webbstre)

    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.