Support » Installing WordPress » Can I edit a widget to exclude pages?

  • If I wanted to exclude pages and have a widgeted site, do I edit the main widget.php file? And do this:

    wp_list_pages(“exclude=11,12,13&title_li=0”);

    As the only code change? Or will editing the widget.php file mess me up?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Nevermind. I did it and it worked. So the answer is yes, you can edit the Widget.php file to exclude pages (for instance if you want one gallery page to index the other gallery pages insead of all the gallery pages appearing individually in the sidebar in Pages).

Viewing 1 replies (of 1 total)
  • The topic ‘Can I edit a widget to exclude pages?’ is closed to new replies.