An alternative to <?php the_ID(); ?>
-
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:
<?echo
commentCount('<?php the_ID(); ?>');?>
Thanks in advance for any help you can give.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘An alternative to <?php the_ID(); ?>’ is closed to new replies.