Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Hi Eric

    Sorry not to have been active here for a while … it has been a challenging year, and personal commitments have kept me away for a while. Normal service should now resume! ??

    I am looking at rolling up a new version of the plugin shortly, and will look at incorporating this idea.

    In the meantime, it should be possible to use the ccchildpages_query_args filter to amend the arguments sent to WP_Query – see https://codex.www.ads-software.com/Class_Reference/WP_Query – by the plugin (or the ccchildpages_list_pages_args filter for arguments sent to wp_list_pages – see https://developer.www.ads-software.com/reference/functions/wp_list_pages/ – is working with lists).

    It should be fairly straightforward to create a function to change the post_status value from the default to array('publish','private') … I would put together some sample code myself, but I am dashing around at the moment.

    Regarding including private pages when I release the next iteration … any idea how it should behave by default? Should it show the pages even if someone isn’t logged in (perhaps without the extract …) or just have them show up as additional content if people are logged in (with an option to show them to visitors who are not logged in)?

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    I have just released a new version of the plugin … default behaviour is to show published pages to everyone, along with private pages for those signed in with access to the private pages.

    I have also added the post_status parameter (which works as per WP_Query), should anyone want to target specific values.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add support for private pages’ is closed to new replies.