Set Featured Image for Archive templates

There are lots of archives in WordPress. Tag archives, date archives, category archives, term archives, author archives. Which archive do you mean? You could start by trying the Taxonomy Images plugin http://wordpress.org/extend/plugins/taxonomy-images/

Custom Taxonomy-specific JavaScript

For a function that enqueues scripts, the action hook you use should actually be “wp_enqueue_scripts” for the front of the site, and “admin_enqueue_scripts” for the admin side of things. This is the proper time to enqueue scripts. While you can technically do it anytime before wp_head, this is the best place because it’s pretty much … Read more

Dynamic template serving, change theme_root using add_filter from current theme

You could also write your own simple get_template_part alias function: The following allows 3 subfolders for template parts that sit in a theme root folder named devices. <?php // STYLESHEETS function print_device_styles( $client=”desktop” ) { $client = apply_filters( ‘set_theme_client’, $client ); wp_enqueue_style( $client.’-css’ ); } add_action( ‘wp_head’, ‘print_device_styles’, 11 ); // TEMPLATE PARTS function get_device_template_part( … Read more

How to use media upload on theme option page?

You are most likely to save the url of the image and not the whole image tag, and there is a great tutorial that explains just how to use the media uploader in your own theme or plugin: http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/ update In case of using this in a meta box you will need the post id … Read more