• Resolved daveagp

    (@daveagp)


    Hi,

    I had some trouble getting private pages to be listed. I mostly blame the poor wordpress documentation for the headache, but I eventually figured out that the right way to do this is pass one more argument ‘post_status’ to wp_list_pages. So I have added

    ‘post_status’ => ‘publish’,

    to $defaults in your plugin. Then you have the power to monkey around with it, for example

    [child-pages post_status=”private,publish”]

    will show you both public and private pages. Thanks for the nice plugin!

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: List Pages Shortcode] Support for 'post_status'’ is closed to new replies.