Jump to content
Simeon108

Constraining list to one deep

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

Share this post


Link to post
Share on other sites

I know there is a parameter, I don't know how to implement it. And I don't want to become a PHP expert, I just want a plug-and-play solution. Give me a finished line of code and I am a happy duckling.

Share this post


Link to post
Share on other sites

I'm sure there are many things you want. The difficult part is to get them.

 

What I can do is move your thread to the job section. Some programmers are willing to do small jobs like this one.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

C'mon, is this your first day on the Internet? Have you never heard of Google?

 

Hint: The ampersand symbol separates the parameters.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×

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.