2R - WordPress Code Reference

WordPress Code Reference

The WordPress Code Reference is a collection of online resources that contain details for every template tag and function that WordPress uses, WordPress code reference provides tutorials and plugins to help. A developer would use this reference to further improve their site and to make sure that all parts of their site are working and functioning correctly.

WordPress the_date() Function

WordPress the_date() function displays or finds the date that the post was written, only will output the date if the post date that is currently there is different from the prior output. Even if the function is written multiple times only one date will show each day worth of posts in the loop.

the_date() Format Parameters

There are a few parameters for the_(date) function such as $format,$before,$after, and $display. $format is the PHP date format and is set to 'date_format'. $before is the output before the date written as ''. $after is the output after the date also written as''. $display is used for whether or not you want to echo the date or return the date as is written as true.

Summary

Understanding what the WordPress code reference is important for creating a quality site. Having this reference makes it easier for developers to code more acurrately and avoiding mistakes by having this WordPress reference code.