Created
September 9, 2013 16:43
-
-
Save jbutko/6498268 to your computer and use it in GitHub Desktop.
WP, PH: Avoid duplicate IDs when using two loops
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ID name in the first loop | |
id="post-<?php the_ID(); ?>" | |
// ID name in the second loop: added blog- before post | |
id="blog-post-<?php the_ID(); ?>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment