Have you ever needed to require a PHP document only for a specific page in WordPress? If so, you've probably run into the fact that the conditional tags can only be executed within a function. In fact, they say as much right on the page: Warning: You can only use conditional query tags after ...
Add a Body Class that Matches Your Page URL
Imagine this: every time you create a new page or post, your WordPress theme automatically includes a class in your body tag that matches your URL! So if you create a page with a URL of "contact," your body has a new class of "contact." As we'll see at the end of this article, you ...
How to Insert HTML Between Your First & Second Blog Posts in Genesis for WordPress
Brian Gardner, founder of Studiopress, has written a definitive tutorial how to add a featured box to your blog. Feature boxes generate leads extremely well and I highly recommend them. Today I want to take this concept a bit further. What if you want to insert this featured box after your first article? This ...
Conditionally Show Your Published & Modified Dates in WordPress
Dates? We don't need no stinkin' dates! That useless information just clutters a blog! Get rid of 'em and never look back! Actually, sometimes you have to show them. Your content isn't always timeless, and treating time-sensitive content as evergreen is a diservice to your community. Let's look at the best way to show dates ...






