WordPress.org

Forums

List Pages Shortcode
[resolved] Feature request: Sibling-Pages excluding current page? (4 posts)

  1. flick
    Member
    Posted 4 years ago #

    Sorry to be a bit cheeky here, but I was wondering if it was possible to request for a feature?

    I am currently using this plugin on a site (with add_filter('widget_text', 'do_shortcode'); to ensure it works in widgets) and was wondering if it would be easy/possible to list sibling pages (using [sibling-pages]) and exclude the current page?

    It would be very useful navigation wise.

    Thanks!

    http://wordpress.org/extend/plugins/list-pages-shortcode/

    p/s: Something like this as per this post:
    wp_list_pages('title_li=&exclude='.$post->ID);

  2. Ben Huson
    Member
    Plugin Author

    Posted 4 years ago #

    So you can use the shortcode like this?

    [sibling-pages exclude_current_page="1" /]

    That should be fairly easy to add.

  3. Ben Huson
    Member
    Plugin Author

    Posted 4 years ago #

    I'll add this into version 1.2 - coming soon...

  4. flick
    Member
    Posted 4 years ago #

    Sorry about the late reply Ben - this works beautifully :) One of my favourite plugins.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • List Pages Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic