Hello,
- As soon as they have one favorite marked then it only shows one
- It should show no posts when the users has no favorites.
You can change this logic code
if ( ! empty( $post_ids ) ) {
$query_args['post__not_in'] = $post_ids; // Exclude the post IDs
}
to
if ( ! empty( $post_ids ) ) {
$query_args['post__in'] = $post_ids; // Include the post IDs
} else {
$query_args = [];
}
however, I see it is the standard behavior of the shortcode [mbfp-posts]
without any difference. Please follow the documentation https://docs.metabox.io/extensions/mb-favorite-posts/#shortcodes
And please notice that, supporting the custom code is beyond our scope of support. If you have any issues with the code, you can contact an expert developer to help you or contact us here https://metabox.io/contact/. We offer a customization service with an extra fee.