Viewing 3 replies - 1 through 3 (of 3 total)

  • <div class="post">
    <h2 class="storytitle" id="post-<?php the_ID(); ?>">
    <?php echo ($post->ID); ?>
    <a href="<?php the_permalink() ?>" rel="bookmark"

    The post->ID line is the bit you want.
    It’s on my blog til you say you’ve seen it 🙂

    No styling applied of course, so as with all things it can be made prettier, and if you really really really like consecutive numbering, don’t use this 🙂

    Oh, and that doesn’t link anywhere unlike cjd’s, but that’s just link wrapping it.

    Thread Starter shadow

    (@shadow)

    Thanks Podz. “you’ve seen it” 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to include the post number’ is closed to new replies.