Search Results for 'code'
-
Search Results
-
HELP: WP 4.9.8; bbPress 2.5.15; site: azor.vip
Hello, I am a senior citizen noob building a one-off site. I wish to post admin questions from my backend what will appear live on my site.
I have written my post and clicked on Published. Nothing happens. Some time ago when I asked this same question, I was told to do something with shortcodes. I became frustrated because I don’t know what a shortcode is, where I find it, and what I do with it. So I am re-visiting my original question.
I would be very grateful if you could give me some steps.
Topic: How to custom Query Loop…?
I would like to output topics with multiple tags.
For that, I wrote the following code, but it did not work as I expected.
<section class="fluits"> <?php $args_fluits = array( 'post_type' => 'topic', 'tax_query' => array( array( 'taxonomy' => 'tag_fluits', 'field' => 'term_id', 'terms' => array( 11, 22 ), ), ), ); $query_fluits = new WP_Query( $args_fluits ); ?> <?php if ( bbp_has_topics( $query_fluits ) ) : ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php bbp_get_template_part( 'loop', 'topics' ); ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php else : ?> <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> <?php endif; ?> </section> <section class="vegetables"> <?php $args_vegetables = array( 'post_type' => 'topic', 'tax_query' => array( array( 'taxonomy' => 'tag_vegetables', 'field' => 'term_id', 'terms' => array( 33, 44 ), ), ), ); $query_vegetables = new WP_Query( $args_vegetables ); ?> <?php if ( bbp_has_topics( $query_vegetables ) ) : ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php bbp_get_template_part( 'loop', 'topics' ); ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php else : ?> <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> <?php endif; ?> </section>Any hints or different args to use to achieve this?
Thanks.
On the home of the forum, I have categories with sub forums in them, but need to change the layout to be 2 columns instead of comma separated forums. What file can I add to my theme to override this? bbPress has a crazy common between the
<li>tags and drives me nuts because you can’t remove that using css.bbPress 2.5.14:
FILE: /var/www/test.site/wp-content/plugins/bbpress/includes/admin/converter.php ------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------- 310 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4 ------------------------------------------------------------------------------------------------- FILE: /var/www/test.site/wp-content/plugins/bbpress/includes/admin/tools.php ----------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------- 144 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead -----------------------------------------------------------------------------------------------------------In bbPress 2.6-RC6 everything is good.
bbPress 2.5.14
PHP Compatibility Checker 1.4.6I have enabled the Visual Editor for topics and replies using the following:
function bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; return $args; } add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );The problem is that only administrator can add text-colors font-styes and other things like that.
I am getting html format when a subscriber uses colors and font-styles
<span style=”color: #00ff00;”><span style=”font-family: ‘book antiqua’, palatino, serif;”>wfwffwwf</span></span>WP Version 4.9.8
bbPress Version 2.5.14I would really appreciate any help,
Thanks!I wonder If I can set an email address for bbpress that is different from my WordPress admin email address? Ideally I should be able to set a different email addresses per forum (to send notifications to the moderators and/or the keymasters).
Does anyone know of a plugin or some code to make that possible?