Forum Replies Created
-
In reply to: hide a specific forum
add_filter('bbp_before_has_forums_parse_args', 'rew_hide_forums'); function rew_hide_forums($args='') { $args['post__not_in'] = array('31867'); return $args ; }
where 31867 is the ID of the forum you want to hide, you can do multiple using
array('31867', '45655')
etc.Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
In reply to: Subscribe to Forumok, so you need to work out what is causing this by disabling your code and plugins til you work out what combination is the issue
In reply to: Strange PHP Error Messagethat error may be from GD bbPress Toolbox Pro by the look of it, suggest you raise with them
In reply to: Stop bbpress author redirectonce activated go to
dashboard>settings>bbp style pack>Profile
and set it up for your choice
In reply to: Bulk-move topics?great – glad to have helped – it was an interesting challenge !
In reply to: Bulk-move topics?ok, so I’ve added this ability into my style pack plugin
it is automatically there once you have activated the plugin, so just see SO TO BULK MOVE… below
OTHERWISE IF YOU PREFER TO USE CODE then
add_action( 'bulk_edit_custom_box', 'rew_quick_edit_fields', 10, 2 ); function rew_quick_edit_fields( $column_name, $post_type ) { switch( $column_name ) { case 'bsp_topic_forum': { echo rew_bulk_edit_forums () ; break; } case 'bbp_topic_forum': { echo rew_bulk_edit_forums () ; break; } } } function rew_bulk_edit_forums () { // Start an output buffer ob_start(); ?> <fieldset class="inline-edit-col-left"> <div class="inline-edit-col"> <p> <label for="bbp_forum_id"><?php esc_html_e( 'Forum:', 'bbpress' ); ?></label><br /> <?php $no_forum_str = /* translators: — is encoded long dash (-) */ esc_html__( '— No forum —', 'bbpress' ); bbp_dropdown( array( 'show_none' => $no_forum_str, 'selected' => bbp_get_form_topic_forum() ) ); ?> </p> </div> <?php // Output the current buffer $output = ob_get_clean(); return $output ; } add_action( 'save_post', 'rew_bulk_edit_save' ); function rew_bulk_edit_save( $post_id ){ // check bulk edit nonce if ( ! wp_verify_nonce( $_REQUEST[ '_wpnonce' ], 'bulk-posts' ) ) { return; } // update the forum $forum_id = ! empty( $_REQUEST[ 'bbp_forum_id' ] ) ? absint( $_REQUEST[ 'bbp_forum_id' ] ) : 0; remove_action( 'save_post', 'rew_bulk_edit_save' ); // update the post, which calls save_post again. wp_update_post( array( 'ID' => $post_id, 'post_parent' => $forum_id ) ); // re-hook this function. add_action( 'save_post', 'rew_bulk_edit_save' ); }
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
SO TO BULK MOVE…
go to dashboard>topics and use the tick boxes to the left of each topic to select the ones you want
then above the topics use the ‘bulk actions’ to select ‘edit’
and click ‘apply’ to the right of thatYou will the see a dropdown box labelled ‘forum’ which lets you set which forum to change those topics to,
and click ‘update’In reply to: “H1 tag missing” in bing site searchsuspected that lacder was a spammer – just confirmed
In reply to: Ability to allow inputs using Google API Towns?this is the bbpress forum, you want support from either buddypress or buddyboss
this is the bbpress forum, you want support from either buddypress or buddyboss
bbpress users can create posts with tags as per this site.
I’m not sure I understand your question?
In reply to: BUG: bbp_get_all_child_ids() grabs trashed postsjust had a quick look, and for instance this function is used when moving a topic form one forum to another. The function makes sure that all replies (child ids of tne topic) are updated with the new forum_id in the reply postmeta, so that if restored later on, they remain correct.
In reply to: BUG: bbp_get_all_child_ids() grabs trashed postsI’m just a guy sat in his kitchen trying to help others, I am not paid to do this.
It is entirely relevant in that they may well be a reason why trashed posts are added, without knowing when and why the function is called and how it is used, it is impossible to say that the code is wrong.
I agree that a filter before that or variable passed would be helpful, but bbpress is not being actively worked on at the moment so it is unlikely that this would get updated.
If you want to flag this, raise a ticket on https://bbpress.trac.wordpress.org/
You might want to use bbp_get_public_child_ids or use the filter at the end of the function to as you say ‘override’ the setting, or if you are using this function directly, then simply create your own version of it.
In reply to: BUG: bbp_get_all_child_ids() grabs trashed postsso can you say in what context this function is called?
In reply to: Bulk-move topics?thanks, give me a day or 2 and I’ll see if that is easy to do
In reply to: bbP Live Preview disables visual editorNot a plugin I have tried, the only reference I can find to it is on github?
It is elsewhere? if so you need to reach out to their support.
In reply to: Bulk-move topics?so move bulk topics from one forum to another – yes?
In reply to: Restrict post creationI have not tested it with that plugin, so cannot say
In reply to: Subscribe to Forumgreat – glad you are fixed
In reply to: Subscribe to Forumok the code above will not help, and should be removed.
I’d guess that because the subscription messages are being sent from ‘noreply@’ you website, your email system is rejecting this as an invalid address.
Try installing
once activated go to
dashboard>settings>bbp style pack>Subscription Emails
and change the address in item 1 to the email address that you are getting valid site emails from, and see if that solves.
ok, if you know how, I’d take out that old solution and use
which has a solution for it
In reply to: bbPress spiking mySQL with long-running queriesgreat – hopefully that will fix, but I cannot see why that line of code
should be causing a problem.In reply to: bbPress spiking mySQL with long-running queriesthat line of code is related to the replies widget – as a test try disabling that widget and see if it makes a difference
In reply to: Subscribe to Forumso does sending a test email from Check & log email (nothing logged in tests) work?
we are trying to start using Elementor Single Post template, but found out that “Hello theme Elementor bbpress template fix”
is this from the style pack plugin, or form somewhere else?
In reply to: adding Forum Name to notificacion emailgreat – glad you are fixed