Plugin / SB Child List

Sean Barton (Tortoise IT)

Changelog

Changelog

0.1: Basic functionality.

0.5: Admin Page added.

0.9: Templating and nest limiting.

1.0: Added backlink from child to parent.

1.1: Added sb_cl_cat_list functionality

1.2: Now using get_permalink for the child list. Means the guid field is no longer relied on and links always work

1.3: Added post_thumb to the templating system. Uses the WP Post Thumbnail system. Contributed by a plugin user.

1.4: Fixed post_thumb option whereby the function didn’t exist on some installs. Uses the get_the_post_thumb function to operate

1.5: Updated sb_parent permalink from guid to get_permalink

1.6: Added templating for the shortcodes (multiple instances of the shortcode in different formats now possible) and support for the_excerpt and SB Uploader output (custom fields called post_image and post_image2 will be recognised)

1.7: Forced page excerpt support in case it wasn’t already added. Added tooltip for post_excerpt

1.8: Added ability to sort a child list by any field in the wp_posts table by adding order=”field_name” to the shortcode

1.9: Added child list widget to show sub pages of current page or any other page of your choice.

2.0: Fixed widget title issue whereby the title was being changed to 1,2,3 depending on the template used.

2.1: Child list and widget now shows ancestors if there are no children. Added parent link option to widget

2.2: Fixed issue with siblings showing in normal child list and then repeating themselves breaking the site.

2.3: Added two new shortcodes sb_sibling_next and sb_sibling_prev. Kind of like next and previous navigation for posts. Uses menu order for display followed by alphabetical post titles.

2.4: Added sb_grandparent so that you can feature one more level of parentage as a link back. Added getText format on “Back to” text for localisation.

2.5: When [post_class] is used and the item relates to the current page then a classname will be added: ‘current_page_item sb_cl_current_page’ to allow you to style individual rows using CSS making the current page stand out perhaps.

2.6: Added custom excerpt function so that when using [post_excerpt] in the template if you don’t enter a manual one it will generate it from the post body as WordPress does normally.

2.7: Minor update, added support for qTranslate

2.8: Minor update, added support for excerpt more tag if used.

2.9: Minor Update, added order parameter to sb_cat_list shortcode. Default ordering to post title.

3.0: Minor update. Added ability to fix the parent ID of a child using parent_id=”” in sb_child_list shortcode

3.1: Minor update. Added template settings shortcode [post_thumb_url] and removed the default link to large image around [post_thumb]. Allows you to set up your own link around the thumb to go wherever you like.. be it larger image or the post itself

3.2: Bug Fix update. [post_image] didn’t work from my 3.1 update because of the logic using the incorrect post ID. Sorted now.

3.3: Minor update. Added new option to turn off the siblings list on the lowest level. This means that when you get to the bottom of the page tree the child list will disappear if this option is utilised

3.4: Minor update. Fix to the child list widget templating system. It wasn’t working for anything but template 1. Now rectified.

3.5: Minor update. Added ability to order the child list using both order and sort options. orderby allows you to order on a specific field and order is ASC or DESC

3.6: Minor update. Added the ability to add thumb_size=”whatever” to the shortcode which will cause the post_thumb template tag to return the size you wanted rather than the thumbnail size for the site

3.7: Minor update. Fixed Array to string conversion error when using [post_thumb_url] in the template system.

3.8: Minor update. Added custom fields [custom_field:field_slug] where field_slug is the meta_key of your custom field

3.9: Minor update. Added ability for sb_child_list shortcode to now accept a category. This means you can show child pages in sub groups accordingly using [sb_child_list category=”cat_name”]. Also removed SQL query for child list in favour of query_posts function.

4.0: Minor update. Fixed a variable bug in the custom fields system which cropped up in 3.9

4.1: Minor update. Another typo causing some people’s systems to show incorrect child content. This has been resolved with the people who have been in touch but please let me know if it needs more work. Also added ‘limit’ argument to the sb_child_list shortcode. It defaults to -1 (all posts)

4.2: Minor update. Fixed a bug whereby an empty list would show (including triggering the widget not to hide) even if there are no child posts.

4.3: Major update. Fixed a default argument issue for anyone not declaring their own orders within the shortcodes. Would cause the query to fail and list to likely to be empty.

4.4: Minor Update. Replaced mysql_real_escape_string for esc_sql to work around errors in newer versions of PHP

4.5: Minor Update. Changed old style constructor in the widget code and updated to modern Widgets API

Ratings

4.6
11 reviews

Rating breakdown

Details Information

Version

4.5

First Released

26 Nov, 2017

Total Downloads

35,029

Wordpress Version

4.0 or higher

Tested up to:

-

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.