I want hide only 1 page id=10
this is my php code
<?php wp_list_pages ('=depth=1&hide_empty=0&orderby=name&order=ASC&title_li='); ?>
What should I change? thanks
I want hide only 1 page id=10
this is my php code
<?php wp_list_pages ('=depth=1&hide_empty=0&orderby=name&order=ASC&title_li='); ?>
What should I change? thanks
According to the template tag, wp_list_pages(), you would use the exclude=argument:
<?php wp_list_pages ('exclude=10&depth=1&orderby=name&order=ASC&title_li='); ?>
Note: delete hide_empty as that's not a valid argument with wp_list_pages.
thank you!
where is this php code is located?
i also need to hide a page.
where is this php code is located?
i also need to hide a page.
My particular code was in my header.php
This topic has been closed to new replies.