跳到内容

Category Posts in Custom Menu

v3.0.7

Diana van de Laarschot · 2011年11月8日 上架

Dynamic menus: List all posts from a category in your menu. Also works for tags, custom taxonomies as well as pages and custom post types.

正在使用
2,000+
评分
4.8 / 5
累计下载
11 万
最近更新
2026年8月28日
43 条评价需要 WordPress 5.4+已测试到 7.1.5PHP 7.4+

截图

Go to Appearance > Menu to enable/disable and set the options for the replacement of Category / Post Tag links by their posts.
Go to Appearance > Menu to enable/disable and set the options for the replacement of Category / Post Tag links by their posts.
Go to Appearance > Customize to enable/disable and set the options for the replacement of Category / Post Tag links by their posts. (Requires WordPress 5.4 or higher)
Go to Appearance > Customize to enable/disable and set the options for the replacement of Category / Post Tag links by their posts. (Requires WordPress 5.4 or higher)
Go to Appearance > Editor to enable/disable and set the options for the replacement of Category / Post Tag links by their posts. (Requires WordPress 6.1 or higher)
Go to Appearance > Editor to enable/disable and set the options for the replacement of Category / Post Tag links by their posts. (Requires WordPress 6.1 or higher)

The default custom menu in WordPress only allows adding a link that leads to a list of posts and pages belonging to a taxonomy (category, tag, etc). If you want to list the posts and pages themselves and if you want WordPress to do this automatically for you, then I hope you will find this plugin useful.

Also works for custom taxonomies and custom post types
NEW: CPCM V3 now provides support for Full Site Editing with the Gutenberg Block Editor
WARNING: Coming from version 1.x? There are breaking changes, read the changelog before upgrading.

Using it

Enable the plugin and go to either Appearance > Menus or Appearance > Customize or Appearance > Editor. Add a category (or other taxonomy like tag or custom) to the menu. Next, you can choose if you would like to replace the category by the posts or pages themselves.

For each Category in your menu, you now have the following extra configuration options:

  • Replace by posts in the category y/n;
  • specify the (maximum) number of posts you want to show for this item (max 10);
  • their ordering ascending or descending by Title, Date or Menu Order;
  • specify the title for the menu items. For this you can use %post_title, %post_author and other wildcards, see ‘Other Notes > Wildcards’. Default value: %post_title

Wildcards

You can control the title of the menu items generated by the plug-in with the following wildcards:

  • %post_title
  • %post_author
  • %post_date for the unformatted post date: 2012-11-10 18:14:23
  • %post_date() for a formatted post date with the following default formatting: November 10th, 2012
  • %post_date(<your formatting here>) for custom date formatting. Example: %post_date(l jS \of F Y, h:i:s A). See https://codex.wordpress.org/Formatting_Date_and_Time for formatting options.
  • %post_date_gmt
  • %post_date_gmt()
  • %post_date_gmt(<your formatting here>)

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums