Display WP Start bar on front page only

If you look at the plugin’s source, its main bits are hooked as following: add_action(‘wp_enqueue_scripts’, ‘init_wpstartbar_files’); add_action(‘admin_print_scripts’, ‘init_wpstartbar_admin’); add_action(‘wp_footer’, ‘wpstartbar_footer’,1); The easiest way to conditionally disable it would probably be along (not tested): add_action( ‘template_redirect’, function() { if( ! is_front_page() ) { remove_action(‘wp_enqueue_scripts’, ‘init_wpstartbar_files’); remove_action(‘admin_print_scripts’, ‘init_wpstartbar_admin’); remove_action(‘wp_footer’, ‘wpstartbar_footer’,1); } } );

wp_query for more fields plugin

More fields Plugin is to enter additional input into the post, page etc. And that is Custom Fields in WordPress. To use WP_Query() for those Custom Fields input, you have to query for the meta_key. <?php //Query for only my custom field value $args = array( ‘meta_key’ => ‘your_field_key’ ); $wpse_query = new WP_Query($args); while( … Read more