Website Design Cornwall

We're here to help...
call on 01736 339 036
email info@zedoary.net
connect on Twitter, Facebook and Google+

Add a link to the WordPress Toolbar

One handy plugin we use is the Editorial Calendar to keep track of when posts are scheduled.

When you install this plugin it puts a link in the left hand column, but as it’s so useful it would be handy to have even quicker access to it.

To make it more accessible we can add a link to the WordPress Toolbar.

All you need to do is go to Appearance -> Editor and select functions.php
Then add this code:

// add a link to the WP Toolbar
function custom_toolbar_link($wp_admin_bar) {
 $args = array(
 'id' => 'calendar',
 'title' => 'Calendar', 
 'href' => '/wp-admin/edit.php?page=cal'
 );
 $wp_admin_bar->add_node($args);
}
add_action('admin_bar_menu', 'custom_toolbar_link', 100);

The same code can be added to add any other links you desire to the toolbar.  The number at the end controls the order.

 

0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Comments

comments

Posted by: admin on July 11, 2012 @ 10:00 am
Filed under: WordPress Tips

« »


Cornwall Chamber Member

Cornwall Chamber Member

What Our Clients Say

I recently asked if Zedoary could help me to set up a blog on my website. They came to the rescue, providing a high level quility service for a very good fee and was always prepared to answer my questions when I had any and deal with any issues I had. — Gareth Jones

Contact Us

Your Name (required)

Your Email (required)

Subject

Your Message

Type this code below: captcha


Google+