Is there any way of using $id or $post_id or something other than <?php the_ID(); ?> to get the post ID? I’m using DotComments (not a fan of WP’s comment setup), and the comment counter won’t work because the code involves one php module inside another:
commentCount('<?php the_ID(); ?>');?>
Thanks in advance for any help you can give.
- The topic ‘An alternative to <?php the_ID(); ?>’ is closed to new replies.