Tag archive for "theme"
You want to make sure the About and Blog pages exist, so create them before if necessary, see http://codex.wordpress.org/FunctionReference/wpinsertpost : wpinsert_post() more
This makes it possible to have the taxonomy below some post type slug, e.g. the post type is at /cars/ and taxonomies are at /cars/manufacturer/, /cars/year-of-construction/ etc. You want to register the taxonomy with the same $slug. more
Run the filter whenever you want your post type in the main loop. Add ishome(), iscategory() etc. Example is for the post type 'paste'. more
There's obviously a little context missing for this paste, but the basic idea should be clear ;-) more
With this you can upload images through your plugin/theme. They are saved as attachments. Please add nonce fields for security reasons. more
See my previous paste for the whole class (minus this) http://kuttler.eu/code/wordpress-plugintheme-options-page/ more
I use helper methods/functions in my themes and plugins to create the input fields, this was simplified for the example here. more