pre_get_posts and BBPress in Swagger Theme

I’m not 100% clear on what the problem is, but I would start with putting the conditions inside the function instead of wrapping the entire function. add_filter(‘pre_get_posts’, ‘query_post_type’); function query_post_type($query) { if (!is_admin()){ global $oswcPostTypes; if(empty( get_query_var(‘suppress_filters’ ) ) { $post_type = get_query_var(‘post_type’); //get theme options global $oswc_reviews; if($post_type ) { $post_type = $post_type; set_query_var(‘post_type’,$post_type); … 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

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; }

How can i show Cubepoints ranks/points in bbpress replies

I found the solution of the problem, it goes like this: <td class=”bbp-reply-author”> <?php do_action( ‘bbp_theme_before_reply_author_details’ ); ?> <?php bbp_reply_author_link( array( ‘sep’ => ‘<br />’ ) ); ?> <!–Ranking –> <div class=”bbp-ranking”> <span class=”bbp-rank”><?php echo cp_module_ranks_getRank(bbp_get_reply_author_id()); ?></span><br /> <span class=”bbp-points”><?php echo ‘Reputação: ‘.cp_getPoints(bbp_get_reply_author_id()); ?></span> </div> <!–Ranking –> <?php do_action( ‘bbp_theme_after_reply_author_details’ ); ?> </td> in loop-single-reply.php

How do I remove certain fields from the forum edit my profile page?

The easiest way would be to edit the form-user-edit.php template located in /templates/default/bbpress/ and remove the fields you do not want your users to be able to edit. Make sure that you don’t edit bbPress core files and copy the template to your themes /bbpress folder as outlined in the codex http://codex.bbpress.org/theme-compatibility/

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