• Resolved rogilvie

    (@rogilvie)


    g’day-

    I’m still pretty n00bie but how good is wordpress! I’m trying to exclude some pages on a website using the following command in my sidebar.php found here:

    http://codex.wordpress.org/Template_Tags/wp_list_pages

      <?php
      wp_list_pages(‘exclude=17,38’ ); ?>

    It doesn’t seem to work – i’ve noticed even if I delete the entire function wp_list_pages it doesn’t effect my site – is this because I use sidebar widgets? If it is due to sidebar widgets, is there a way to exclude certain pages from the sidebar?

    I’m using the default theme, WP version 2.1.3

    thanks,
    Ross

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you use the widgets… it doesn’t matter what you modify in your sidebar: widgets will take precedence over it.

    In this case I would disable (drag down) the Pages widget and install the execPHP widget – then put your code into one of those.

    Thread Starter rogilvie

    (@rogilvie)

    sweet – thanks for the quick reply and info mate, I get some of that execPHP widget action…

    Ross

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘using <?php wp_list_pages(‘exclude – do sidebar widgets make this obsolete?’ is closed to new replies.