Thread Starter
ifdion
(@ifdion)
That would be great :D. Looking forward for the next iteration.
“The Latest” page should be easy. get_posts or WP_query will do the trick.
For the sub pages, you can use a conditional statement to add a time parameter to the loop, if theres a $_GET[‘year’]. Doing so will make ‘blog.com/news/?year=2011’ display the latest post in 2011.
Hope this help
Have you tried a custom wp_query on a page template?
That way you can call the archive like mydomain.com/news-archive/?year=2011.
Usually this problem occurs due to invalid markup, e.g there is a stray </div> that is not supposed to be there. Basically if the post is there, there shouldn’t be any problem with the loop. If there’s a ‘broken layout’ problem then go inspect element the page on your browser and find markup or css oddities.
Hope this help