Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?

In WordPress is pretty simple create custom roles and also assign specific capabilities to specific user roles (no matter if from core or custom). In my plugins I often create an user role that has all the capabilities required by my plugin, and then I attach some of thos capabilities to existing roles. I’ll give … Read more

Post and bbpress – link discuss on forum

You can use the [bbp-single-topic id=$topic_id] shortcode to link to an individual topic that you create manually. http://codex.bbpress.org/shortcodes/ Or your other option is to wait for bbPress 2.6 that will include a feature that will allow you to replace WordPress post comments with bbPress topics. http://bbpress.trac.wordpress.org/ticket/2498

pre_get_posts conflict with archive posts

As your pre_get_posts function stands, you’ll have that conflict as you are using pre_get_posts very carelessly. pre_get_posts modifies the query variable object before the main query AND WP_Query is executed. So any changes in your function will influence both the main query and any custom query that uses WP_Query. That is why everything is haywire … Read more

Team Collaboration in WordPress

Oh well, when I started to read your question, I felt as if I’m reading a project description on Elance or Freelancer.com website! 😉 I’ve not used slack.com but my first impression after reading your question is that the implementation of final solution requires some coding beyond theme for bbpress. Not sure whether this sort … Read more

Avatar picture does not display when using get_avatar

The get_avatar function is a pluggable function with it’s first parameter being either the user’s ID or email. You’re using get_avatar with get_the_author_meta(‘ID’) which should give you the ID of the current user within the Loop. From the Codex If used within The Loop, the user ID need not be specified, it defaults to current … Read more

Arrange BBpress replies in reverse order

Here is the snippet to reverse replies order for the single topic: add_filter(‘bbp_before_has_replies_parse_args’, ‘dev4press__change_replies_order’); function dev4press__change_replies_order($r) { $r[‘order’] = ‘DESC’; return $r; }

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