Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: post count – 1

I couldn’t get rid of the -1’s, so I tinkered with it until it was working for me. This is working .73 as well.

<?php

function bb_decrement( $value ) {

return $value-1;

}

add_filter( 'get_topic_posts', 'bb_decrement', 1);

?>

<?php

function bb_decrement_topic( $value ) {

global $forum;

return $value;

}

function bb_decrement_forum( $value ) {

global $forum;

return $value-get_forum_topics();

}

add_filter( 'get_topic_posts', 'bb_decrement_topic', 1);

add_filter( 'get_forum_posts', 'bb_decrement_forum', 1);

?>

Skip to toolbar