We in the midst of stripping down our WordPress theme to about as bare-bones as we can get it. We’re not worried about the design we’re trying to get to, we’re concerned about stripping away the old and giving us the cleanest most data-only theme we can get to start with.
loved the 1st series..cant wait to get to the juicy stuff in this one..howd you get your tabs and stuff all cool and red in sublime??
Phoenix theme for Sublime Text 2. The link: https://github.com/netatoo/phoenix-theme
I think the reason behind using a loop for single items is that you have control over showing or not showing stuff if for some reason you get to a post that doesn’t exist (or was deleted). I’m not sure how this would be possible in WordPress, though.
As far as I know, doesn’t the WP engine end up serving index.php if it can’t find a specific page/post?
That’s correct. It’s generally a good practice to have an if statement that checks if the posts exist before looping through them. If they don’t, then you’d display an appropriate message, like so:
Wow… now I wonder why oh why I never do this before starting up a new project… Rule No.32 Enjoy the little things!!