[resolved] Pagelist_ext depth issue (4 posts)

  1. Charlie Davidson
    Posted 4 years ago #

    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.:

    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)?



  2. Charlie Davidson
    Posted 4 years ago #

    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


  3. webvitalii
    Plugin Author

    Posted 4 years ago #

    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.

  4. Charlie Davidson
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic