WordPress.org

Ready to get started?Download WordPress

Forums

Can I edit a widget to exclude pages? (2 posts)

  1. mondolizzie
    Member
    Posted 8 years ago #

    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.

  2. mondolizzie
    Member
    Posted 8 years ago #

    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).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.