SB Child List

The total in-page navigation solution for WordPress. Using the shortcodes and widgets provided you can display navigation between your parent, child a

Author:Sean Barton (Tortoise IT) (profile at wordpress.org)
WordPress version required:4.0
WordPress version tested:
Plugin version:4.5
Added to WordPress repository:12-01-2009
Last updated:13-05-2019
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:92
Rated by:11
Plugin URI:http://www.sean-barton.co.uk
Total downloads:37 215
Active installs:1 000+
plugin download
Click to start download

This plugin lets you turn WordPress into a proper easily navigable CMS. Having a site made up mostly of pages in the form of a tree (an information site for example) was always a pain until I wrote this to help me out. I have had lots of feedback about it over the last few months and more and more people are finding ways they can use it to improve the navigation and usability of their sites

I wanted to show some sort of hierarchy in the pages inside WordPress. I decided to call one of my pages “articles” and have my articles use it as their parent.

Logically you would expect to see a list of the child pages on the articles page along with a pretty picture and some intro text. This doesn’t seem possible natively with WordPress so I decided to make it happen.

Adding the hook [sb_child_list] to any post or page will by default show an unordered list showing the children and links to them. If you prefer to style it yourself then don’t worry because you can do that too using the templating system on the settings page.

There is also add another tag, [sb_parent], that allows you to provide a back to parent link from any child. This enables you (in the articles example) to add a “click here to read more on this subject” link. It is also template based so it can say anything or look however you see fit

You can also use this shortcode: [sb_cat_list category=CatName] which does what it says on the tin, simply give it a category name and it will show the posts in that category for you with optional ‘limit’ argument

The plugin creates a widget for use also. This works if there is a sub page present. Much like a sub pages widget or similar.

I have added a shortcode for sibling navigation. You can use [sb_sibling_next] and [sb_sibling_prev] to show links to next and previous pages ordered by menu order followed by post title order. Handy indeed! You can use the argument orderby to select a field and order to choose ASC or DESC.

There is a simple templating system to allow multiple templates for [sb_child_list] and [sb_cat_list] with the argument ‘template’ ([sb_child_list template=”2″]). Also added excerpt support and support for the SB Uploader Plugin custom fields (custom field called post_image will show if necessary).

To round it all up.. Shortcode listings:

[sb_child_list] <– Arguments allowed are: ‘template’, ‘nest_level’, ‘orderby’ and ‘order’ (order and orderby allow the arguments specified in this list: https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters)
[sb_parent]
[sb_grandparent]
[sb_cat_list]
[sb_sibling_next]
[sb_sibling_prev]