Introduced a new feature: WP Query since v4.2.0. You can now create a TOC from taxonomies and custom post types, such as categories and pages, or even combine them. This is a great option for generating a TOC for documentation.
Source Type
You can choose to create a TOC from categories, pages, or the default option, post content.
Source Post Type
You can generate a TOC from a selected custom post type, such as ‘pages’.
Source Page Parent
You can also create a TOC exclusively from a selected parent page.
Source Is Mixed
You can also Combine pages with the current page’s content to generate a mixed TOC.
Source Taxonomy
Generate a list of categories by selecting the taxonomy source type.
Source Term Parent
Alternatively, create a partial list of categories by selecting a specific Source Term Parent.
Note: Only last child pages can combine the current page content.