How to integrate blog status?

You can use the option API to set the blog_status and then display it. If you want to use blog description for the purpose you already have the UI available to set it from Setting->General and set the tag line to update your blog status. Then you can display the tag line anywhere in your … Read more

Advanced Custom Fields

In Advanced Custom Fields the field editing screen where you add in the required fields and assign them to post edit screens did you choose image URL or Attachment ID for the image field? It sounds like you’ve got it set as image URL which will just return the URL to the originally uploaded file … Read more

Why plugin ajax response is -1?

according to wordPress jedi, scribu, you can now enqueue scripts from inside the plugin handler. http://scribu.net/wordpress/conditional-script-loading-revisited.html you were echoing things and in shortcode handling you have to return. i ran into some issues getting the script to work by returning the script, so i moved it to an external file which definitely works. function myajax(){ … Read more

Default Plugin Settings Not Writing to Database

I believe the issue is that your function that sets up the settings initially isn’t getting run upon activation. Add a call to your mouldings_register_settings_initial() in the activation hook, like this: function mouldings_activate() { global $wpdb, $mouldings_options; mouldings_register_settings_initial(); if ($mouldings_options === false){ $mouldings_options = array( ‘idea_item_columns’ => ‘4’ ); update_option( ‘mouldings_settings’, $mouldings_options ); } } … Read more

Set of plugins to control the Admin UI

I have found Role Scopper to be a powerful role management tool. It’s a PAIN to figure out, but once it clicks, it’s genius. There’s a new, paid version (not terribly expensive), but I have not tried it, and can’t speak to it’s usefulness. @brasofilo, thanks for the good information. I will incorporate some of … Read more

Output HTML only on individual post view

If you want to load your js only on page/post view you can do it like this: function myplugin_enqueue_scripts() { global $wp_query; if ( $wp_query->is_single ) { wp_enqueue_script( ‘my_js’, … ); } } add_action( ‘wp_enqueue_scripts’, ‘myplugin_enqueue_scripts’ );

Custom Taxonomy Tag Search

One plugin that I’ve used successfully is Relevanssi: http://wordpress.org/extend/plugins/relevanssi/ Also, you could try to make your custom taxonomy into a search filter, like it’s described in this post: http://wordpress.org/support/topic/search-form-with-custom-taxonomy-dropdown . I’ve used this on my projects and it worked wonders! Hope this helps!

Where should a plugin or widget cache its results?

I find that relying on the filesystem to cache results is easy for maintenance, diagnostics, and performance. Please note that this might be true in some (maybe even most) circumstances, but not all of them. If your code is meant for anything beyond personal usage you don’t know with which file system and hardware will … Read more