[wp-hackers] CPT with post_title names

Tom Barrett tcbarrett at gmail.com
Tue Aug 16 20:13:16 UTC 2011


Hi

Using custom post types for profiles of various types, I'm never sure how to
handle post titles as names, People could have any number of names, as well
as honourifics. It's trivial to just drop it in the title, but a list (or
archive) page, you may want them ordered by their last name. Has anyone
tackled this before?

There seems to directions. Either a) build custom fields for all the
individual parts and make the post title myself, or a) do something clever
with the post title to split into it's parts. Users may find the former to
be a bit clunky, and I can't think of a clever way to do the latter.

Example names might be:
Andy Apple
Dr Beverly Books
Mr Cricket, Esq

-- 
http://gplus.to/tcbarrett


More information about the wp-hackers mailing list