get_posts() not working in functions.php

This is a bandaid, not a fix. But it seems there is a bug within WP_Query, so I had to modify the query right before it was actually run in order for the post_type parameter to not be ignored. 1) I changed get_posts() to a WP_Query 2) I added this to my functions.php file: function … Read more

How to disallow participant from publishing topics(bbpress)?

OK I got a quick Solution. I enable the plugin BBpress Moderation and change the following code in /wp-content/plugins/bbpressmoderation/bbpressmoderation.php FROM: /** * Before inserting a new topic/reply mark * this as ‘pending’ depending on settings * * @param array $data – new topic/reply data */ function pre_insert($data) { global $wpdb; if (@$data[‘post_status’]==’spam’) return $data; // … Read more

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