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.
I hadn’t thought of this, seeing responsive design as the way of the future and all. I suppose it would not hurt to give the site visitor an option to switch to the original view (rather than it being a site owner / theme options thing). Certain elements such as dropdown menus would still need to be touch-friendly, though.
Using sex to sell anything (seriously, even HAMBURGERS ) has become the norm, and in my opinion it is cheap and tasteless. Personally, I avoid buying and promoting products marketed in this way, including themes. That’s my two cents for whatever it’s worth to the thread starter and theme makers.
I don’t know how good Macs are but I’m saving up for one simply because my last four PC’s (three makers) have had persistent issues with hardware and Windows. From what I’ve read, Macs are not a silver bullet and they do cost more but they do seem to have a reputation as being reliable and much of the designer/developer crowd seem to be happy with ‘em.