Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Help with a plugin


so1o
Participant

@so1o

Spencer

two ways..

1) edit /index.php

change line 12 to

$topics = get_latest_topics(0,1,'x');

where x is the forum id of the ‘Blog Article Discussions’ forum

2) plugin

create a file named my-own-blog-forum-filter.php plugin in the my-plugins directory.. or any name you want.. and have the following code in it

<?php

function my_frontpage_forum_filter($where) {

$where .= " AND forum_id NOT IN ('x') ";

}

add_filter('get_latest_topics_where', 'my_frontpage_forum_filter');

?>

again replace x with the forum id that you need

Skip to toolbar