WordPress.org

Support

Support » Plugins and Hacks » Exclude parent from list

Exclude parent from list

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    mattmickeyj
    Member

    @mattmickeyj

    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

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude parent from list’ is closed to new replies.