Support » Plugin: Page-list » [Plugin: Page-list] Pagelist_ext depth issue

  • Resolved Charlie Davidson

    (@charliedavidson-1)


    Hi webvitaly

    Love the plugin – it’s great.

    Quick issue I was hoping you could help with. I have three levels of pages:

    1. Continent
    2. Country
    3. City/Town

    On continent and country I’m trying to using the following to list the child pages (one level deep only) with image and description:

    [pagelist_ext child_of=”current” exclude=”” image_width=”50″ image_height=”50″]

    With country it works a treat, e.g.:
    http://whatstodo.in/south-africa/

    However, when using the same code above on continent, it shows both the country and city/won, e.g. 2 levels deep. To get around this I’m using the code below which doesn’t look quiet as good:
    [pagelist depth=”1″ child_of=”2970″ exclude=””]

    Any thoughts (and thanks in advance)?

    Cheers
    Charlie

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • One further point. When I try and publish a page for “City/town” it now throws the following error – though does still publish:

    Warning: Invalid argument supplied for foreach() in /home/wtdadmin/public_html/wp-includes/post-thumbnail-template.php on line 61

    Warning: Cannot modify header information – headers already sent by (output started at /home/wtdadmin/public_html/wp-includes/post-thumbnail-template.php:61) in /home/wtdadmin/public_html/wp-includes/pluggable.php on line 866

    Cheers
    Charlie

    Plugin Author webvitalii

    (@webvitaly)

    For showing one level depth you shoud specify “parent” param:

    [pagelist_ext child_of="current" parent="777" exclude="" image_width="50" image_height="50"]

    where “777” is the ID of current page, whose subpages you want to show.

    About warning: I am not sure if this warning is made by my plugin. Anyway, I would recomend you to disable warning and notices on your server, because you will see many of them in future.

    Thanks for the fast response webvitaly! That works perfectly and I’ll look at your suggestions on server notices too.

    Thanks again for a fantastic plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Page-list] Pagelist_ext depth issue’ is closed to new replies.