Thread Starter
ocade
(@ocade)
Hello,
issue solved. The reason was in the callback function as the uLike-Shortcode was executed within <article> tags. With removal, it’s working fine.
Regards
Thread Starter
ocade
(@ocade)
Update from my side:
I just made additional tests and in a clean installation, it is working fine. So I continued the debugging.
If I enable the option “Automatic display”, it’s working fine as expected. So the counting issues only occurs when not using the automatic display and using a callback function with the function wp_list_comments:
<?php wp_list_comments( 'type=comment&callback=bi_posts_get_comments' ); ?>
In the callback function, I’m let returning:
do_shortcode('[wp_ulike for="comment" id="' . $comment->comment_ID . '"]')
Any idea about the reason?