Here are some other CPT ’s I’ve used and have seen in use frequently:
- Staff – position field (aka Job Title)
- Locations – address, hours, phone number(s), map data
For Events, custom fields I’ve used are Start Date, End Date, Time, Venue, Address and Map details.
psvent saidId think testimonials would be a separate CPT as there generally used in two different areas in sites
What about “client_testimonial”?
Definitely a necessary CPT . Maybe that’s what was meant. Originally I thought psvent had meant as a portfolio field but of course they said nothing of the sort.
UPDATE : For testimonial fields I have used just one and that is “Below Name” which is useful either for their location, business name, etc.
Thanks for clearing that up. A country of countries? And if Scotland is a country then where’s its ISO code? http://www.spoonfork.org/isocodes.html
Frankly my friends, it’s time to declare independence. I mean come on, what on earth does Canada need with the queen? And Australia still has the union jack in the corner of their flag!
Look, if you find yourself in a situation like this:
Then it might be time for some of this:
My two cents.
I wouldn’t want to cover all the fields that might be needed. I’m looking for fields that’d pass the 80/20 rule here.
Let’s see if a Video URL field would fall into the 80/20 rule. I’m not sure how most others add video items to their portfolio CPT ’s but I setup a single URL field for YouTube, Vimeo, etc.
greenshady saidOften used post types can be ‘standartized’, but the fields which go with those types – not. You cannot cover all the fields that MIGHT be needed for a custom theme. What then? ...
Why would you not include meta fields? I’m thinking “date” and “URL” are definitely fields that are needed for portfolios. I honestly haven’t done too much work in this space though.
True there is a wide array of custom fields that could be used with a portfolio CPT so why not include a large set of them, then provide an easy way for the theme to enable or disable the use of certain fields as needed? That way maybe 90% of portfolio themes will find the fields they need. The other 10% could then propose/contribute additional custom fields as needed. Yeah?
Underwater furniture museum. Cool.
Must be in Dubai.
Thank you both, Justin and Pippin. I’m planning a framework to make my theme development more efficient and want to have things right from the beginning.
I’ve got some ideas about making this a lot easier and better for the entire WP community. I just haven’t had the time to sit down and work on it.
Got me all curious now. I’ll have my eyes peeled.
I like how Orman Clark (ZillaThemes) offers a shortcodes plugin that will work with anything (good business, BTW ) while having their own themes override the default styles in order to match the theme better. I think this is a good model to learn from. This is easy to fail to do but not too hard for me to understand, so what about CPT ’s…
If a theme has a CPT (or multiple CPT ’s) registered in a plugin then when a user switches to another theme they’ll still have access to their content in the WP admin. The new theme they switch to obviously won’t come with any way to show that content on the front-end. Is the whole idea 1) to give the site owner access to their content (even if just to copy/paste it elsewhere) and 2) to make those CPT ’s available for a new theme developer (assuming either the site owner or freelancer) to utilize?
Am I missing the point? Is there more to this? The purpose of CPT ’s in a plugin is something I need to get my head around.
It seems like this could get a lot deeper than just shortcodes and CPTs.Yes, there’s a lot more than just shortcodes and CPTs. These are just the obvious examples. There are some things that are even pretty borderline theme/plugin, but these two are clearly plugin territory.
I’d love to read a Justin Tadlock article (?) on why, how and specifically WHAT (other than shortcodes and CPT ’s) to keep outside of a theme and inside of a plugin.
Are any authors packaging shortcodes and CPTs in plugins now?
I’d like to know also (I mean, other than Justin’s club). Is anybody on ThemeForest doing this? Orman Clark? Mike McAlister? Who around here is putting CPT ’s in plugins? Which theme shops are doing this? I would love to learn from the example of any commercial theme developer who is doing everything in the best way. Who am I to look at?
This is a fantastic thread and hopefully will spur us all to do the very best.