ID for post (css php)
So i’m on a part of styling and coding the post part on the homepage (index.php), like doing the title, read more links and stuff. And then i noticed this line of code thats already in theme:
<div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
I don’t know what is this for and in what advantage do I use it, and why would this be placed in a blank theme ? If anyone can explain thanks 🙂
To note there are also div tags like footer,entry,metalinks,header placed in blank theme.
I used blank theme by Chris Coyer
- The topic ‘ID for post (css php)’ is closed to new replies.