ThemeShaper Forums » Thematic

[closed]

Add dynamic id to div within the loop

(2 posts)
  • Started 4 years ago by mogito2000
  • Latest reply from mogito2000
  • This topic is resolved
  1. mogito2000
    Member

    Hello again,

    How would i go about adding a unique id or class to a repeating div within the loop?

    .....Any ideas?

    Thanks

    Mogito

    Posted 4 years ago #
  2. mogito2000
    Member

    Appologies, this was actually fairly simple and is not that relevant to thematic.

    To solve use: <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.