plugin-development

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[...]

WPSE Plugin Repository: The plugins that came out of WP-Answers

Link your WPSE-Plugins If you answered a question and made a plugin out of your code, than this is your place to share it. The Idea: An old comment from[...]

Should I use wpdb prepare?

I’m new to SQL and am wondering if I need to use wpdb->prepare for the following query to a table I’ve created global $wpdb; $tablename[...]

WordPress Vote Plugin – Vote Once and Track User

I’ve been looking through voting plugins and cannot seem to find one that works for me. I’m hoping you can help me out before I have to build[...]

is_plugin_active function doesn't exist

I’m using WordPress 3.0.5 and have tested with 3.1rc4. In the main PHP file of my plugin, when I try to call is_plugin_active I get Call to undefined[...]

Custom rewrite rule serves content, but returns 404 error code

I have a plugin that sets up a custom rewrite rule. I can access the short URL and the content is returned correctly, but the HTTP response is 404, Page[...]

How to trap "Publish" button to check for meta box validation?

I’m trying to do some form validation on my custom meta box, and I remember somewhere reading about some javascript function to disable/enable the[...]

A tool to analyze rewrite rules? [closed]

Is there a good tool to analyze my rewrite rules? I always get confused with the regexes and the parameter replacements. I have created something myself[...]

The plugin generated 80 characters of unexpected output!

I’m getting this message each time I activate my plugin: The plugin generated 80 characters of unexpected output during activation. If you notice[...]