WordPress Loop Code Index.php
I need a bit of a complicated index.php file coded out for WordPress. Here’s what I need the loop to have:
– 1 Featured post that uses WordPress sticky function only on the home page. (it needs to have more xhtml markup than just regular a post)
– 8 other posts on the home page (12 on all other pages). All of these posts will be styled and have different xhtml markup based off of 3 tags (articles, vidoes, or links). So that means, if a post is tagged “Articles” then it will display this xhtml markup.
– Every 4th post needs to have an additional class applied to it. The reason for this is because every 4th post has extra padding applied to it which bumps it down to the next row (which it shouldn’t do).
– This should also be able to work on category archive pages and search results.
This is an urgent project and I would like to see it tested before the project is completed.