Skip to main content
Agency Program 50% cashback. 10% commissions. Priority support. Built for growing agencies. 50% cashback for agencies Speak to the team Join free
PTA

Post Type Archive Link

v1.3.1
by Stephen Harris · 5.0 (25 reviews)

Creates a metabox to the Appearance > Menu page to add custom post type archive links

10K+ active installs Updated Nov 28, 2017 Tested to 4.1.41
Try Demo Download
Pre-installed Ready in ~10s No card

About Post Type Archive Link

Post Type Archive Link is a plugin that adds a metabox to the Appearance > Menu admin page. This allows you to easily add links to the archive pages of your custom post types in your WordPress menus. The plugin also provides options to customize which post types are available for adding to the menu.

Frequently asked questions

What does the Post Type Archive Link plugin do?
The Post Type Archive Link plugin creates a metabox on the Appearance > Menu admin page. This metabox allows you to add links to custom post type archive pages in your WordPress menus.
Does this plugin support WordPress' default menu classes?
Yes, the plugin uses WordPress' default menu classes for current pages, current page parent, and current page ancestor.
Can I control which post types appear in the menu metabox?
By default, all post types with archives (and not registered by core) are available. You can prevent a particular post type from appearing using the show_{$posttype}_archive_in_nav_menus hook.

Changelog

1.3.1 – 12th April 2015

  • Fixes incomptability with PHP 5.3 and older.

1.3

  • Make submit button available for translation. Thanks to @antwortzeit.
  • Removed hooks from constructor, allowed plugin disabling: removing all hooks and text domain
  • Introduced “post_type_archive_links” filter hook to get an instance of plugin class
  • Hide CPTs having ‘has_archive’ true, but ‘publicly_queryable’ and/or ‘show_in_vav_menus’ set to false
  • Introduced “show_{$cpt_slug}_archive_in_nav_menus” filter to force CPTs be added on metabox
  • Show “No items.” when there are no CPTs available
  • Tested up to 4.0
  • Added Italian language. Thanks to @giuseppe.mazzapica.
  • Updated readme

1.2

  • Use has_archive rather than public. See #13
  • Fixes bug where “disabled” is printed if no menu has been created.
  • Tested up to 3.7.1
  • Added German language. Thanks to @mcguffin.

1.1

  • Fixed a couple of notices that displayed with debug on
  • Better maintainability (avoid touching JS files)
  • Static init now runs during plugins_loaded hook
  • Code cleanup and safer names

1.0.1

  • Fixed enqueue bug

1.0

  • Added plug-in

Try other plugins

wp-jalali icon

wp-jalali

4.0 · 20K+ installs

Full Jalali calendar support for Wordpress and localization improvements for Persian/Afghan/Tajik users.