Is there a template tag that counts, for making an unique ID
-
This is my forum layout.
<div id="wrapper">
<header> header stuff </header>
<div id=”content”>
<aside> Topic of Forum info (like a sidebar) </aside>
<section>
<header><h1>Topic title</h1></header>
<hgroup class=”reply-ID” id=”-1″> reply author stuff </hgroup>
<article class=”reply-ID” id=”-1″> reply content </article>
<hgroup class=”reply-ID” id=”-2″> reply author stuff </hgroup>
<article class=”reply-ID” id=”-2″> reply content </article>
<–! repeats of the above code –>
</section>
</div><!– end #content –>
<footer> footer stuff </footer>
</div><!– end #wrapper –>
It would be very helpful to have an (extra) counter on my first <hgroup> and <article> pair of tags. This way i could only style the starting topic content and make it stand out, because the first author always-/most of the time has a question and i would like to make it stand out more from the other replies.
I don’t want a topic or forum ID because those are too unique.
I need something that starts counting by Zero or One on every new topic like a Reply counter 1, 2, 3, 4, 5, I could add them to an ID or Class (shown above) to make it unique.
Something like a WP-comments counter.
- You must be logged in to reply to this topic.