ThemeShaper Forums » Thematic


Add dynamic id to div within the loop

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

    Hello again,

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

    .....Any ideas?



    Posted 5 years ago #
  2. mogito2000

    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 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.