內容簡介
Post Type Archive Link 外掛會在「外觀 > 選單」管理頁面上建立一個新增文章類型存檔頁面的元件。
此元件將會列出所有自訂文章類型,並且允許您在 WordPress 選單中加入每個存檔頁面的連結。
此外掛使用 WordPress 預設的選單樣式來標註現在的頁面、父頁面和祖先頁面。
預設而言,所有具有存檔頁面但未被核心註冊的文章類型都可以加入到您的選單中。
您可以強制阻止特定的文章類型出現在選單中,方法是使用 show_{$posttype}_archive_in_nav_menus 鉤子。
外掛標籤
開發者團隊
原文外掛簡介
Post Type Archive Link creates a metabox on the Appearance > Menu admin page.
This lists your custom post types and allows you to add links to each archive page in your WordPress menus.
The plug-in uses WordPress’ default menu classes for current pages, current page parent and current page ancestor.
By default all post types with archives (and not registered by core) are available for adding to your menu.
You can forcibly revent a particlar post type from appearing using the show_{$posttype}_archive_in_nav_menus hook.
