Before starting PMPro, Jason and I did a lot of custom website development. In our consulting work, we regularly used a shortcode I wrote to pull in titles and excerpts of a page’s children, with lots of attributes and display options to control the output. We call this shortcode [memberlite_subpagelist] and have included it in the Memberlite theme.

How it Works

The basic idea of the shortcode is to shows a list of a given page’s subpages in the order you define. It allows you to easily create a “digest” page of content, that is dynamically drawn based on the hierarchy of pages defined. If a URL changes, you update a page title, or change the body content of a page, there’s no need to go back and update your digest page: the shortcode handles this all for you.

We use this shortcode on almost every top level menu page here on the Paid Memberships Pro website. The documentation page shows the standard DIV layout, our Plus Add Ons page shows the three column grid with excerpt option, and the Memberlite Theme demo’s color schemes page shows a three column grid with thumbnail only.

Screenshots

Memberlite Subpagelist with Medium Images in 3 Column Grid

Memberlite Subpagelist 2 Column Grid with Thumbnail

Memberlite Subpagelist Div with No Images

Attributes include:

The shortcode includes attributes for customizing the display, selecting or excluding pages, defining the page list sort order and “orderby” element.

You can also set the output to include or hide the page’s feature image, and define the size of the image from the default image sizes of WordPress (“thumbnail”, “medium”, “large” and “full”).

60,000+ membership sites use Paid Memberships Pro to #GETPAID.

We’re 100% GPL

Our plugin's code is not obfuscated, runs on as many sites as you want and can be customized to fit your project's needs. We just ask that you follow the GPLv2 guidelines by applying the GPLv2 license to any altered or unaltered version of PMPro that you distribute. Thanks!