I think I can follow your recommendation here, if I can correctly query the topic post.
But I’ve tried it in a code snippet, including for instance:
if ( bbp_is_single_topic() && ($topic_id = 2503) )
without success.
Would appreciate the help of others in this small step; thank you!
Jim P.
]]>I try sort by number of like to the Top Posts elementor widget by Ulike. By default u can’t order by number of like ( only by : Date, Title, Menu Order, Random).
So i Try to use Query ID(sort_by_nb_like), but i don’t found a solution, my code :
add_action( ‘elementor/query/sort_by_nb_like’, function( $query ) {
$query->set(‘post_type’, ‘battle’);
$query->set(‘orderby’, ‘meta_value_num’);
//$query->set(‘order’, ‘ASC’);
} );
Can u help me ?
Thanks and great plugin
]]>Also, is it possible to pass along the Category ID with the product? I am trying to rank products within categories for products that are included in multiple categories (unique problem).
Thanks.
]]>I recently added the ulike like button for my users to be able to like their favorite posts… However, the ulike button doesn’t show up on the topic page eventhough it should have. What should I do?
I suspect that the problem is that I put in the “Lead Topic”… is that the problem?
Thanks,
Book
I’m having trouble getting the counter to show up on the posts. I am able to click on the button however and I’m fairly sure it’s being saved. I’ve tried both the automatic insert into posts as well as the short code with the same result.
Additionally, the statistics page only shows the message “No data found! This is because there is still no data in your database”.
Please let me know what I can do to debug this.
Version: 4.2.0
Thanks!
]]>Is there a way to use period in WP_Query as in the URL example?
What I am trying to make uses pre_get_posts from multiple search criteria to display the search results.
]]>It seems like your plugin doesn’t work properly with the recently released bbpress 2.6.x. I testing is under Twenty Fifteen. When your plugin is active and there are your plugin related notifications then I can’t view the buddypress notifications (user -> notifications tab), loader just stuck with following message “Loading notifications. Please wait.” …but when I deactivate your plugin then it works fine.
Other theme shows following error:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function bbp_format_buddypress_notifications(), 5 passed in public_html/wp-content/plugins/wp-ulike/inc/general-functions.php on line 1097 and exactly 8 expected in public_html/wp-content/plugins/bbpress/includes/extend/buddypress/notifications.php:62 Stack trace: #0 public_html/demo/theme/wp-content/plugins/wp-ulike/inc/general-functions.php(1097): bbp_format_buddypress_notifications('wp_ulike_activi...', '593', '55', '18', 'object') #1 public_html/demo/theme/wp-includes/class-wp-hook.php(288): wp_ulike_bbp_format_buddypress_notifications('wp_ulike_activi...', '593', '55', '18', 'object', 'wp_ulike_activi...', 'wp_ulike', '481') #2 public_html/demo/theme/wp-inclu in public_html/demo/theme/wp-content/plugins/bbpress/includes/extend/buddypress/notifications.php on line 62