Search Results for 'Warning: array_merge(): Argument #2'
-
Search Results
-
Hello everyone.
I have been issues with sorting my BBpress forum topic on the front end.
So i tried to use a custom function i got from one of the threads.
Here is the code i used.
//* Change sort order of Topics within a specified bbpress forum
function my_custom_display_topic_index_query ($args) {
$thisforumid = bbp_get_forum_id();if($thisforumid == 43135) {
$args[‘orderby’] = ‘date’;
$args[‘order’] = ‘ASC’;
}return $args;
}
add_filter(‘bbp_before_has_topics_parse_args’, ‘my_custom_display_topic_index_query ‘ );and i got this error
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘my_custom_display_topic_index_query ‘ not found or invalid function name in /home/flexol5/public_html/wp-includes/plugin.php on line 235
Warning: array_merge(): Argument #2 is not an array in /home/flexol5/public_html/wp-content/plugins/bbpress/includes/common/functions.php on line 1419
I don’t know what i did wrong or maybe the coding structure of bbpress as changed. I would like someone to help with a way to arrange a specific forum topic in ascending order.
Thanks
Two days ago i had an update showing for BBpress, and after I updated my forum page stopped showing. I can get to some of the forums via the ‘recent replies and topics’ on the sidebar, but when clicking on the FORUM link from my main menu, this is all that is showing.
Warning: array_merge(): Argument #2 is not an array in /home/content/p3nexnas05_data01/83/2102083/html/wp-content/plugins/bbpress/includes/common/functions.php on line 1344
WP Version – Version 3.9.1
BBpress Version – Version 2.5.4Hi;
After updating the BBP private groups plugin this morning, I lost my forum. This is the message on the page:
Warning: array_merge(): Argument #2 is not an array in /home/xxxx/public_html/xxxx/wp-content/plugins/bbpress/includes/common/functions.php on line 1344If I deactivate the plugin, the forum shows up.
Is there a fix for this? As most here, fairly new to WP & bbPress.
BTW – excellent tutorials.Thank you.