Linux 软件免费装
Banner图

List Child Pages Shortcode

开发者 douglaskarr
更新时间 2026年9月19日 05:04
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

page shortcode child page parent page

下载

1.0.0 1.1.0 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.4.0 1.5.0 1.5.1

详情介绍:

I could not find an easy plugin that enabled me to use a shortcode that would enable me to publish a list of child pages under a parent page. So, I built one. Usage The shortcode is [listchildpages]...[/listchildpages]. It accepts several attributes: Examples: Example 1: Order the child pages by publish date in descending order: `[listchildpages aclass="" ifempty="No child pages" orderby="publish_date" order="desc" displayimage="no"] Here are our child pages: [/listchildpages]Example 2: Order the child pages by title in ascending order with the page's featured image aligned left:[listchildpages orderby="title" order="asc" displayimage="yes" align="alignleft"] Here are our child pages: [/listchildpages]Example 3: Target a specific parent page by ID and use medium-sized images:[listchildpages parent="123" displayimage="yes" size="medium"] Resources [/listchildpages]Example 4: Target a parent page by slug and show full-size featured images:[listchildpages parent="about/company" displayimage="yes" size="full"] Team Sections [/listchildpages]Example 5: Explicitly set the parent as the current page and use large images:[listchildpages parent="current" displayimage="yes" size="large"] Subpages [/listchildpages]` The shortcode accepts all of the Order and Orderby Parameters listed within the WordPress class reference. Built by DK New Media, visit MarTech to keep up on this plugin and other marketing tools to help you grow your online presence!

安装:

  1. Activate the plugin through the 'Plugins' menu in WordPress.

屏幕截图:

  • View of the output.

升级注意事项:

1.5.1
  • Marks the plugin tested with WordPress 7.1, aligns the stable version, and adds optional orderby/displayimage aliases without changing default output.
1.4.0
  • New parent and size attributes. Backward-compatible. Please review usage examples.
1.3.1
  • Tested in latest versions of WordPress
1.3.0
  • Added more options!
1.2.2
  • Corrected an undeclared variable error.
1.2.1
  • Added documentation on where you can see all of the order and orderby parameters.
1.2.0
  • Added another shortcode option for the order. Default is DESC.
1.1.0
  • Added another shortcode option for the order. Default is publish_date.
1.0.0
  • Initial Release

常见问题:

How can I add a description for each child page?

Edit the child page and you'll find an excerpt section where you can enter a description that will be published on the list.

How can I enable featured images on my site?

Within your functions.php file, look for the add_theme_support post-thumbnails line and add page to the array. Or if you don't have that line, you can just add it: add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );

How can I modify the output?

There are additional class fields for the unordered list tag (ulclass), list item tag (liclass), and the anchor tag (aclass). You can modify the output utilizing your theme's CSS.

What happens if I deactivate or uninstall the plugin?

Nothing in the database is stored or removed. The plugin has no settings, options, custom tables, or uninstall routine. Deactivate or delete it and your pages, excerpts, and featured images stay as they are. Shortcodes left in content will simply stop rendering until the plugin is activated again.

更新日志:

1.5.1 1.4.1 1.4.0 1.3.2 1.3.1 1.3.0 1.2.2 1.2.1 1.2.0 1.1.0 1.0.0