cc licensed flickr photo shared by StayRAW
In the previous posts in this series of using the new WordPress 3 Custom Post Types (I keep calling them custom content types, same thing), I overviewed the plans for the MIDEA web site, we set up the places to create the new content types, and diverged into some set up magic using child themes.
That was the easy stuff. Now I get into the parts I had to more or less invent on my own (well, with some good leg ups from others)- how to add all of the form field elements to my new content types so I could add extra information to them. This are fields for say, my Organization content types, to have a field to enter their web site address, latitude/longitude for doing some mapping, etc.
Now I did this all in custom code, and as hopefully I stated earlier, I have no expectation that this is the way it will be dobe going forward. I foresee a raft of new plugins coming in that will take away this manual code layer, and maybe, when WordPress 3.7 or 4.1 comes out, it might be built in. I have no idea. I did this to show the WP platform can do this.
cc licensed flickr photo shared by M.H.ick9s Arrgh, just spent about an hour and half chasing myself in silly code circles. Not that it matters, but just to document my sanity/lack thereof… I have a few WordPress pages hanging off the top banner, and I’d previously had them use PHP code in the pages, using […]
cc licensed flickr photo shared by theilr
It’s been a while since I did some WordPress hacking, and today I think it showed. Like a good bone I could not let go of a niggling little problem, and then after going around in circles, I found an obvious way that was much more simpler than where I was headed.
But there are things even learned in a few trips around the roundabout.
Here’s where I drove around in circles today… for a while, I have been publishing web versions of the NMC Horizon Reports in CommentPress format at http://wp.nmc.org — this is very useful for publications since it allows comments to be attached to individual paragraphs, so they are tied at a more micro level to the content. (Yeah they are in the old CommentPress mode, I know I should be using the newer digress.it and am ready to publish the new one there this week).
Since Mobiles have been part of the Horizon Reports since like 1776, and there is the nifty WPtouch plugin that elegantly makes WordPress sites display cleanly on not just iPhones, but other mobile platforms (my first play was last year and I have rolled into most of my WordPress sites).
cc licensed flickr photo shared by ElDave The main navigation of most WordPress sites is driven by cycling through all of the content that are WordPress pages– which is nice, but sometimes you have content that you don;t want cluttering the navbar. Or maybe you want to insert something that is not a Page into […]
Do you use the TwitterTools plugin on your own WordPress site to send your blog posts to your tweet stream? Wanna feel like a real WordPress hack jockey? Here is a little code editing you can do without needing to know diddly squat about PHP. Here’s the thing, when TwitterTools published your new sexy blog […]
I just whipped up the puniest of WordPress hacks for the ultimate reasons, to serve myself. If I knew what I was doing, it would be a plugin, but I’ll leave that as an exercise for the reader. Here’s the thing. Whenever I write something, i like to reference by link a previous post. So […]