Add a WordPress Menu To Your WordPress Toolbar

This WordPress snippet will add a WordPress Menu on the WordPress Toolbar. This uses the admin_bar_menu which will run when the admin bar is created. This action calls the function Add_Menu_To_Toolba...

Get All WordPress Navigation Menus

If you are creating a custom themes options page or a Wordpress plugin which needs to get all the Wordpress menus in your site. This small function can be very useful, it will return all the Wordpres...

Enable Shortcodes In Widgets

Wordpress shortcodes are great, they allow you to run bits of PHP code from within the text editor by using tags like [ button ] to display a button1. But there is a problem with shortcodes and you ca...

Display Full TinyMCE Editor In WordPress

The Wordpress text editor uses TinyMCE to allow you to change the style of the text you write. This allows people who don't know much HTML or CSS to change the font size, font colour, paragraphs, tabl...

WordPress Query Arguements

The Wordpress WP_Query functions allows you to pass in an array of parameters to search your posts on your blog. You can pass in multiple different parameters to narrow down the posts to get exactly...

Display Top Commenters On Wordpress Blog

There are many blogs that like to reward the top commenters on their blog by displaying who they are on the sidebar. Another common approach is to display the most recent commenter. Here is a Wordpre...

Remove WordPress Meta Tags

By default Wordpress will add meta information into the head tag of your website. This meta information can provide your visitors with lots of different information about your Wordpress site from: -...

Include Wordpress Template Files In Your Theme

It's common practice in PHP development to use template files to include in your web pages. Wordpress comes with in-built functions to include certain files in your theme: - get_header() - Includes t...

RSS Feed Content Only Wordpress Shortcode

The RSS feed is a very important tool for any blogger, it allows people to always stay up to date with your latest posts on your blog. The RSS feed is still an important tool to stay up to date with...

PHP Function To Convert Hex To RGB

If you are working on a web app that does things with colours then you could find it useful to have function to convert between different colour types. Here is a PHP snippet which allows you to conve...

Add Missing Alt Tags To Wordpress Images

Images are important for engagement with your visitors but the problem with images is that they mean nothing to search engines. The only way search engines can tell what an image is about is by readi...

Cache Wordpress Query Strings Using Transient API

In Wordpress you can easily create a Query to search all the posts on your blog. All you have to do is use the Wordpress WP Query Class and pass in the parameters for the custom query. The problem wi...

Change The WordPress Howdy Text

The best thing about Wordpress is that you can custom everything, any bit of text you see on the Wordpress dashboard can be change. This means that if you are working on a client Wordpress website you...

Show Urgent Messages In WordPress Dashboard

If you use Wordpress dashboard then I'm sure you would of noticed the error messages that are displayed at the top. These will normally be messages from Wordpress to let you know a new version has com...

Disable Dragging Of Wordpress Dashboard Metaboxes

When you log into your Wordpress dashboard you are presented with numerous Wordpress metaboxes. These allow you to display different bits of data about your blog which can be vital to the user who is...