There are a whole bunch of functions that you can call from anywhere that will enable you to get the information you need.There are two main scenarios you might want to use properties are designed to hold this information: use the Conditional Tags to interact here.This is the more common scenario to plugin writers (the second normally applies to theme writers). variable (which the Template Tags rely on), as above.
See also The Loop and The Loop in Action for more information.
Note: If you use the_post() with your query, you need to run wp_reset_postdata() afterwards to have Template Tags use the main query's current post again.
Note: Ticket #18408 For querying posts in the admin, consider using get_posts() as wp_reset_postdata() might not behave as expected.
function computes the difference between two dates in a variety of different intervals, such as the number of years, months, or days between the dates.
This function is available in all versions of Excel since at least version 5/95, but is documented in the help file only for Excel 2000.
For some reason, Microsoft has decided not to document this function in any other versions.
This will display only the date components whose value is greater than 0.
The day value will always be displayed, but the year and/or the month value may be suppresed.
determines what type of query it's dealing with (possibly a category archive, dated archive, feed, or search), and fetches the requested posts.
It retains a lot of information on the request, which can be pulled at a later date.
Most of the time you can find the information you want without actually dealing with the class internals and global variables.