• anabelle

    (@anabelle)


    I want to prevent child pages from showing up in the sidebar list, i edited widgets.php and added depth=1 in function widget_pages

    ‘wp_list_pages(“title_li=&depth=1”);’

    but they still show up, so I renamed the function to widget_pages2 to see if that prevented pages from showing uo, but they still did, so i deleted the entire function and the STILL show up.

    That makes me think that function is being ignored, what else can i do to check why the depth=1 argument isn’t being recieved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Are you even using widgets for the sidebars? Just checking. 🙂

    Thread Starter anabelle

    (@anabelle)

    off course i am.

    I did another test, i deleted one “;” from the end of a line to create a syntax error, and the error did came up…

    But the changes in pages listing are being ignored.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Have you put that particular widget that you were messing with onto the sidebar? Maybe you’re using a different pages widget?

    You’re probably not going to get an error unless it actually tries to run that code. If the widget is not being used, it never gets that far.

    Thread Starter anabelle

    (@anabelle)

    Im messing with the standard widgets, and i inserted pages in the presentation menu..,

    I’ve searched for other place in the file wher wp_pages_list appears but ther aren’t any. I editing the only one in the file.

    Where else can i look? please help.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Pages problem using sidebar widgets’ is closed to new replies.