Many times when working with WordPress you’ll need to search the codex for something. I found this handy little snippet from Jared Williams that makes searching the codex very convenient. It adds a box to the header of the WordPress dashboard, as pictured here. Type in your search and it opens in a new window.
Simply add this snippet to your functions.php file and the box will appear in your dashboard:
1 2 3 4 5 6 7 8 9 |
/**
* ADD WP CODEX SEARCH FORM TO DASHBOARD HEADER
*/
function wp_codex_search_form() {
echo '<form target="_blank" method="get" action="http://wordpress.org/search/do-search.php" class="alignright" style="margin: 11px 5px 0;">
<input type="text" onblur="this.value=(this.value=='') ? 'Search the Codex' : this.value;" onfocus="this.value=(this.value=='Search the Codex') ? '' : this.value;" maxlength="150" value="Search the Codex" name="search" class="text"> <input type="submit" value="Go" class="button" />
</form>';
}
add_filter( 'in_admin_header', 'wp_codex_search_form', 11 );
|
Featured Plugin - WordPress Google Maps Plugin
Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more
Featured Plugin - WordPress Facebook Plugin
Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more
Featured Plugin - WordPress Appointments Plugin
Take, set and manage appointments and client bookings without having to leave WordPress. Appointments+ makes it easy.
Find out more
Featured Plugin - WordPress Ecommerce Shopping Cart Plugin
Out of all the WordPress ecommerce plugins available, MarketPress has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more
Featured Plugin - WordPress Newsletter Plugin
Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot.
Find out more
Featured Plugin - WordPress Pop-Up Chat Plugin
No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more
Featured Plugin - WordPress Q&A Site Plugin
It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more
Featured Plugin - WordPress Infinite SEO Plugin
Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more
Featured Plugin - WordPress Membership Site Plugin
If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more
Hi,
Can you tell me what did you use to write the code as such? I want to insert code to my posts like this.
That’s today’s best tip for me, I always check WordPress codex when I work on my blogs. That will be a great time-saver.
I guess I am doing something wrong because, I cannot do that.