WordPress.org

Ready to get started?Download WordPress

Forums

Page-list
Exclude parent from list (4 posts)

  1. mattmickeyj
    Member
    Posted 10 months ago #

    Hi,

    Is it possible to exclude only the parent page e.g.

    Gallery 1 <---- exclude
    Page 1
    Page 2

    Gallery 2 <---- exclude
    Page 1
    Page 2

    So only child pages of multiple parents are shown.

    Thanks

    http://wordpress.org/plugins/page-list/

  2. danielle_r
    Member
    Posted 8 months ago #

    Did you find this out or found a workaround? I've got the same question.
    Please share if you did. I'd be eternally grateful. Best, danielle.

  3. mattmickeyj
    Member
    Posted 8 months ago #

    I did a slight workaround, not the cleanest , but it works. I created an account called 'exclude' and changed the author on the pages I wanted to exclude from displaying to the new 'exclude' account, leaving the pages I wanted to display as admin - then wrote my query as below (random display, post type is page, only display pages that were created by the author admin, display 3 per page in 3 columns).

    [query orderby="rand" post_type="page" author_name="admin" posts_per_page="3" cols="3"] <h3>{THUMBNAIL}
    {TITLE}
    [/query]

    Hope this helps.

    Matt

  4. danielle_r
    Member
    Posted 8 months ago #

    Hi Matt,
    Thanks for the info. If seems you're using a different plugin? Query is not supported with page list as are some of the other parameters...

    This is my workaround:
    On the parent page that should list the subpages:
    [pagelist_ext child_of="xxxx" sort_column="post_date" number="2" sort_order="desc" image_width="120" image_height="120" strip_tags="0" limit_content="700"]
    Where child_of xxxx is the page ID of the subpage. That way I don't show the pages themselves, just the pages attached to it. For more subpages just repeat the code and put in the right page ID for that subpage.

    HTH someone, best, d

Reply

You must log in to post.

About this Plugin

About this Topic