by Chris Coyier & Jeff Starr

Tag: echo

Inside the loop, if you use the function the_date() to display the date the post was published, you may run into trouble. Specifically, if there are two posts published on the same day, the second one will return nothing for a date.

UPDATE: Make sure to take out "Take Two" on this concept, with a cleaner method for doing this.

Custom fields allow us to attach data to Posts or Pages that we can yank out and use at will in our templates. They are awesomely flexible and single-handedly allow WordPress to be used for about any CMS need. The fact that they can only be used on single Posts can be limiting in some circumstances. Sometimes you wish you could grab a custom value that you can control and is consistent globally, regardless of the current post. In this post we'll look at a technique to do so.

Technically, your work is protected under copyright “the moment it is created and fixed in a tangible form that it is perceptible either directly or with the aid of a machine or device.” [1] Registration of your copyrighted work is not required [2], but you should include a copyright notice on all published works[3].

Recent Posts

Random Posts

Authors

Chris Coyier is a real-world web designer who has been reaching for WordPress to power client sites for many years.
He subscribes to the theory that not only is WordPress capable of powering any website it is almost always the right choice.
More »

Jeff Starr is a professional developer, designer, author, and publisher with over 10 years of experience.
He works with WordPress on a daily basis to create high-quality sites with a focus on performance, security, and web standards.
More »