How to change the gravatar image from front end?

They can change the image in their Gravatar account. Or set a default from the backend which isn’t what you asked originally add_filter( ‘avatar_defaults’ , ‘default_avatar’ ); function default_avatar( $avatar_defaults ){ $new_avatar = get_stylesheet_directory_uri() . ‘/images/default-gravatar.png’; $avatar_defaults[$new_avatar] = “Gravatar”; return $avatar_defaults; } Source Replace default avatar

Is it good practice to search for custom posts based on custom field values?

This sounds like the perfect use case for Custom Taxonomies. And unless you plan to customize the admin backend, the Codepress Admin Columns plugin could be useful for filtering the posts using those new taxonomies. Edit (2014.01.23): Yes, you could build a “search form” where you would list the available taxonomies. The get_categories() function will … Read more

fire action when post is being edited as well as saved?

The documentation for the save_post action says: save_post is an action triggered whenever a post or page is created or updated, which could be from an import, post/page edit form, xmlrpc, or post by email. So, you should only need the save_post action to run the desired code when the post is changed.

Template setting is not saving in wordpress

Try naming the file page-template-articles.php but leave the file contents and header name – “Template Name: Articles” the same. Right now, you might be running into a reserved naming collision within WP with how Custom Post Type templates are named, i.e. articles-page.php is a page template name for a CPT called articles.