[wp-docs] Differences between Template Tags and Functions
yahgrp at poplarware.com
Thu May 29 14:49:53 GMT 2008
Ozh et al: maybe we should add this brief, coherent, and logical
explanation to the Template Tags article in the Codex, as well as the
Function Reference, or maybe just in the Function Reference (since
that is more apt to be looked at by dev types)?
>> My question is, where do you draw the line between functions (which
>> developers look for) and template tags which non-developers look for?
> The border line is indeed virtually inexistant. I would say: let's keep it
> the least confusing for inexperienced developpers (who are going to look
> primarily at the codex), while more experienced coders will also dig a bit
> around and look into the source.
> My proposal for: what a function needs to qualify as a Template Tag :
> - being located in one of the *-template.php files
> - echoing something, not returning something
> - having a "non scary" self explanatory name (the_category(): ok,
> _usort_terms_by_ID(): not ok)
Jennifer Hodgdon * Poplar ProductivityWare
Drupal/WordPress Sites, Themes, Modules/Plugins
Custom Web Programming, Web Databases
More information about the wp-docs