theme-development

Why does my short code get executed before other content?

I have the following text in a page. As you can see my shortcode is right at the bottom but somehow when the code runs, the out put of my shortcode is[...]

Check for featured image in WP_Query

Is there a way to filter posts by featured image when initialising a WP_Query object? Example $my_query = WP_Query(array("has_thumbnail"=>true)); or,[...]

Change template dynamically

Is it possible to change the template loaded for a page, as it loads, without having to change the record in the database? I suspect it can be done with[...]

Using the theme options to change background

how do I add some options to a theme? I would like to add support, in my thmes, for dinamically changing the page background. I don’t even know how[...]

Automatic Updates For Private And Commercial Themes?

Is there any way to get wordpress to check for, download private theme updates? I found this plugin for private plugin updates…. http://w-shadow.com/blog/2010/09/02/automatic-updates-for-any-plugin/[...]

How can I add a URL field to the attachments window?

For example… add_action('init', 'reg_tax'); function reg_tax() { register_taxonomy_for_object_type('category', 'attachment'); } Adds a “Category”[...]

What's the difference between home.php and index.php?

If I create a home.php file, it seems that WP will use that instead of index.php, so index.php is never used? What are the differences between these two[...]

How do register_sidebar() and get_sidebar() work together?

Disclaimer: I am brand spanking new to WP. I am using the Starkers HTML5 framework theme ^(http://www.netaksharee.com/goto/http://nathanstaines.com/archive/starkers-html5-v3).[...]

How to Link External jQuery/Javascript files with WordPress

So I’m using Starkers to base my next WP theme on and I’ve run into a small issue, I was including my own version of jQuery in the header.php[...]

Is there a hack for using is_page() within the function.php file?

I’ve created a function in my functions.php that’s called when the submit_form event is fired on the front-end. Here is the code: add_action([...]