Recently, I was searching for a way to automatically list all the sub-pages on a parent page on my WordPress website. I thought there would be this functionality from earlier, without the use of any plugin, but there wasn't.
However, after researching and wasting lots of time, I found a simple WordPress plugin that lists subpages on the parent page. Let's see how to set up the plugin:
WordPress plugin to list subpages on the parent page
The plugin is called Page-list (by webvitaly) and it is completely free to use. Here's how it looks so that you choose the correct one while installing:
Simply install this plugin on your WordPress site and then you have to add a shortcode on the parent page where you want to show the subpages.
If you want to just show all the subpages in A to Z sorted fashion, use the shortcode [subpages] and it will show everything in a simple list format.
Here are some other shortcodes that you can use:
- [pagelist] – hierarchical tree of all pages on site (useful to show a complete sitemap of the site)
- [subpages] – hierarchical tree of subpages to the current parent page
- [siblings] – hierarchical tree of sibling pages to the current page
- [pagelist_ext] – list of pages with featured image and with the excerpt
You can find other available shortcodes on the plugin's official page.
Comments
Post a Comment