Exclude parent from list (4 posts)

  1. mattmickeyj
    Posted 3 years ago #


    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.



  2. danielle_r
    Posted 2 years 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
    Posted 2 years 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}

    Hope this helps.


  4. danielle_r
    Posted 2 years 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Page-list
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic