WordPress.org

Ready to get started?Download WordPress

Forums

Page-list
[resolved] Pagelist_ext and attribute hierarchical (8 posts)

  1. nigrantonio
    Member
    Posted 1 year ago #

    Hi, I try with =1 and without (=0) hierarchical attribute but pagelist_ext show me always subpages in my list. I try also with depth = "1" but it's not allowed as in [subpages] shortag. How can I solve it? My code is:

    [pagelist_ext hierarchical="0" show_first_image="1" limit_content="150" more_tag="0"].

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

  2. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    [subpages_ext] will generate only flat list of pages.
    It can show pages from not only one level, but list is always flat.

  3. nigrantonio
    Member
    Posted 1 year ago #

    Sorry, but short tag is pagelist_ext not subpages_ext...

  4. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, I made a mistake.
    I mean [pagelist_ext].
    [subpages_ext] does not exist.

  5. nigrantonio
    Member
    Posted 1 year ago #

    I suspect that... so what's meaning of hierarchical attribute in pagelist_ext short tag?!?

  6. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    [pagelist_ext] is based on get_pages function and the meaning of all params you may read on Codex page.

  7. nigrantonio
    Member
    Posted 1 year ago #

    OK, so I have to use child_of attribute as I read on Codex... to limit subpages to actual page... but I don't want grandchildren! :-( I'll try with parent (to reverse logic)

  8. nigrantonio
    Member
    Posted 1 year ago #

    So at the end, this is code that solves my problem
    [pagelist_ext hierarchical="0" parent="34" show_first_image="1" limit_content="150" more_tag="0"]
    that is equivalent to:
    [subpages depth="1"]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic