A common request, particularly for those who have created custom post types like ‘News’ or ‘Events’, is to add a link to their post type’s archive page on their navigation menu. Currently, however, this can only be done by manually entering the post type archive URL. Apart from being fairly inelegant, this solution has a few drawbacks: it doesn’t always appear as ‘current’, if you change your permalink structure it could break the link, manually adding the URLs is tedious and the link does not appear as ‘current’ when on a post of that post type.
In this tutorial I will show you how to produce a plugin that creates a meta-box on your Appearance -> Menu page which allows you to add post type archive links. These links don’t suffer from the drawbacks mentioned above.
(Continue)
Follow Wptuts+ and Tuts+ on Twitter