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)?
Ozh wrote:
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
www.poplarware.com
Drupal/WordPress Sites, Themes, Modules/Plugins
Custom Web Programming, Web Databases
PHP, Perl, MySQL, JavaScript, XML, AJAX
_______________________________________________
wp-docs mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-docs