[wp-testers] There is no ID when we manage Post, Pages and Categories

Peter Westwood peter.westwood at ftwr.co.uk
Tue Mar 25 22:08:50 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jennifer Hodgdon wrote:
| Matt Mullenweg wrote:
|> Peter Westwood wrote:
|>> thinking about this some more maybe the correct approach is to
|>> encourage theme authors to not use template tag calls based on ID's
|>> but to write them using slugs instead.
|>
|> That should be trivial to add to the fall-through in
|> get_category_template().
|
| You mean making the category template file name be
| "category_my_cat_slug.php" instead of "category_3.php", e.g.?
|

No just make it be able to be.  And I was thinking more template tags in
general than just the file names.

Realistically needing to know what the id's are is not a common thing
for the main users of a blog.

It is a theme development issue.  90+% of the time the ID's are irrelevant.

I think the best way forward is to understand why people want to see the
ID's and come up with solution(s) to there issues.

If it's solely for theme development then maybe we should be adding the
relevant hook(s) if they don't already exist to allow a simple plugin to
add an ID column and release a theme developers helper plugin.

Or we could just add the ID's if WP_DEBUG was enabled thereby
encouraging theme authors to check for Notices etc.

westi
- --
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
~ C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH6XfyVPRdzag0AcURAm6cAJ9jLwpATDYduEOThkjfVrpu8h3dugCfbqxx
e/WygI6hkG3fye2yIzI52U4=
=J539
-----END PGP SIGNATURE-----


More information about the wp-testers mailing list