Forum Replies Created
-
In reply to: Custom Field doesn’t work with bbpress 2.6 and above
In any case thanks for your time!
Hope developers will fix this bug soon.Currently, this bug can be fixed using the code below.
Also, Replies box should be moved below Custom Fields/* Fix BBpress 2.6 bug with Custom Fields */ if( function_exists( 'bbp_get_version' ) && version_compare( bbp_get_version(), '2.5' ) > 0 ) { add_action( 'wp_ajax_add-reply', 'wp_ajax_add_fix_bbpress_26'); function wp_ajax_add_fix_bbpress_26() { // print_error_log( $_POST ); // $_POST['action'] = 'add-meta'; wp_ajax_add_meta(); } add_action( 'wp_ajax_delete-reply', 'wp_ajax_delete_fix_bbpress_26'); function wp_ajax_delete_fix_bbpress_26() { // print_error_log( $_POST ); wp_ajax_delete_meta(); } add_action( 'add_meta_boxes', 'bbpress_26_fix_add_meta_boxes', 25 ); function bbpress_26_fix_add_meta_boxes() { do_action( 'bbp_topic_attributes_metabox' ); } }
In reply to: Custom Field doesn’t work with bbpress 2.6 and aboveThis report already exists in the bbpress track.
7 months ago I posted this bug.
https://bbpress.trac.wordpress.org/ticket/3311In reply to: Custom Field doesn’t work with bbpress 2.6 and aboveNo – it should save after pressing “Add Custom Field”
Also delete/update the field and other related options should be work without saving whole topic.In reply to: Custom Field doesn’t work with bbpress 2.6 and aboveI made a video. Maybe something we do in different ways.
https://u.pcloud.link/publink/show?code=XZYoN3kZ17ImJFqXr2mS1lR5VYbO481A3dVyIn reply to: Custom Field doesn’t work with bbpress 2.6 and aboveThis is a link to the site info
https://u.pcloud.link/publink/show?code=XZbhN3kZA6Sf5kyM8TSRvNidbU5Igz6rgg27In reply to: Custom Field doesn’t work with bbpress 2.6 and abovetopic as draft
There is no matter. Such functionality doesn’t exist by default.
The error occurs with any topic status. Main – the topic must be saved.In reply to: Custom Field doesn’t work with bbpress 2.6 and aboveSame with a completely new site with a default theme.
In reply to: Custom Field doesn’t work with bbpress 2.6 and aboveThis is two simple steps for reproducing the bug
1) Save a new topic as a draft
2) Write any data to custom fields and press “Add Custom Field”In reply to: Custom Field doesn’t work with bbpress 2.6 and aboveI use the next code in functions.php
add_filter('bbp_get_topic_post_type_supports', 'register_bbpress_topic_type_supports'); function register_bbpress_topic_type_supports( $args ) { $args[] = 'excerpt'; $args[] = 'thumbnail'; $args[] = 'custom-fields'; return $args ; }
In reply to: Custom Field doesn’t work with bbpress 2.6 and aboveI used custom fields with bbpress topics and reply.
In reply to: Custom Field doesn’t work with bbpress 2.6 and aboveI mean the standard custom fields.
CF works with bbpress 2.5.14
https://drive.google.com/file/d/1imUBWx8C7JPokoGgcVnvjs7IAS70o-yd/view?usp=sharing