Jump to content

Recommended Posts

Forgive me, but I am ignorant of PHP with the exception of copying snippets from various sources. I have successfully used this snippet to call the children of a particular WordPress article in a list:

<?php  wp_list_pages('title_li=&child_of=12442') ?>
 
I would like to constrain this call to just the children one deep, i.e., not the grandchildren, etc.
 
Can anyone tell me what this code would be?
 
Thank you,
 
Brother Simeon
Light of the Spirit Monastery
ocoy.org
Link to comment
https://forums.phpfreaks.com/topic/303154-constraining-list-to-one-deep/
Share on other sites

I undertand the 'title_li=&child_of=12442' part, and I understand that to call 1 deep is depth=1 but I don't know how to combine them into a single command. I know this is elementary to those who know, but I am not among the learned.

 

Can someone show me how to combine them?

 

Thank you.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.