How to get bbpress sticky topics

You can make the query like above using following code. <?php query_posts( array( ‘posts_per_page’ => 2, ‘meta_key’ => ‘_bbp_sticky_topics’, ‘post_type’=> ‘topic’, ‘order’ => ‘ASC’ ) ); if (have_posts()) : while (have_posts()) : the_post(); //do something endwhile; endif; ?> But i strongly recommend you not to alter main query using query_posts() and instead use WP_Query as … Read more

How to display BBpress statistics?

It seems BBPress got a function called bbp_get_statistics() read source. You can throw an array of $args = array(); in it. You also have a filter to modify the output: apply_filters( ‘bbp_get_statistics’, $statistics, $args ); Disclaimer: I’m no BBPress expert – I haven’t even installed it somewhere, just found this via google.

Require tags for bbPress topics [closed]

In the back end, it’s a matter of using the hook save_post, as topic is a Custom Post Type. If no Tags are filled, saving is cancelled and a link is presented so the user can go back to the editing screen. But, there’s one caveat: the title is not preserved, if it is a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)