modify page widget parameter
-
I want to know how to remove the sub pages of the parent page in the pages widget. I use a plugin to display subpage links on the parent page therefore don’t need them to show up in the navigation part of the sidebar (navigation is the page widget).
Here is the link to better explain I guess:
https://www.acworthcomputers.com/test/
Under Navigation > Members, I don’t want the subpages displayed.
I am using the Greenline 1.0 template
https://themes.wordpress.net/columns/3-columns/1659/greenline-10/This is what I have in my sidebar.php which wasn’t making it work either even if I removed the widget from the sidebar
<ul id="sidebarleft"> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?> <li id="categories"><?php _e('<h2>Categories</h2>'); ?> <ul> <?php wp_list_cats(''); ?> </ul> </li> <li id="archives"><?php _e('<h2>Archives</h2>'); ?> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <h2>Navigation</h2> <ul><a href="<?php bloginfo('url'); ?>/"> <?php wp_list_pages("title_li=&depth=1&sort_column=menu_order ");?></li></a></ul> <?php endif; ?> </ul>
I know that the parameter that needs to be changed is:
depth=1
I just don’t know if there is something in the widgets.php file that needs to be edited or something cause I have changed the
title_li=&depth=1&sort_column=menu_order
to
title_li=&depth=0&sort_column=menu_order
with no avail!Any Ideas?
- The topic ‘modify page widget parameter’ is closed to new replies.