WordPress – How To Exclude Some Pages – list_pages

If you want to exclude some pages from displaying, use the function ‘wp_list_pages”. The PHP files to call this function can vary depending on your template, but usually they are invoked either in ‘header.php’ or ’sidebar.php’ (’rsidebar.php or ‘lsidebar.php’).

Just specify what pages to include or exclude as in the following examples:

wp_list_pages(’title_li=Pages&include=2,4,6,8′ );


wp_list_pages(’title_li=Pages&exclude=2,4,6,8′ );

How to find the page ID

Log in to your WordPress admin interface and go to Manage -> Pages. Click on the page that you want to include or exclude. In the URL bar of the browser, the last part is the page ID.



67 thoughts on “WordPress – How To Exclude Some Pages – list_pages

  1. Pingback: cialis price
  2. Pingback: prices of cialis
  3. Pingback: best ed medication
  4. Pingback: Real cialis online
  5. Pingback: levitra coupon
  6. Pingback: online vardenafil
  7. Pingback: order levitra
  8. Pingback: slots online
  9. Pingback: order viagra
  10. Pingback: online loans
  11. Pingback: payday loans
  12. Pingback: viagra for sale
  13. Pingback: cialis internet
  14. Pingback: best casino online
  15. Pingback: new cialis
  16. Pingback: jorge
  17. Pingback: cialis 5 mg
  18. Pingback: cialis buy
  19. Pingback: cialis 20
  20. Pingback: bonus bingo blitz
  21. Pingback: real online casino
  22. Pingback: viagra buy
  23. Pingback: what is viagra
  24. Pingback: purchase viagra
  25. Pingback: viagra vs cialis
  26. Pingback: viagra generic
  27. Pingback: tadalafil 20mg
  28. Pingback: best casino online
  29. Pingback: cheap viagra
  30. Pingback: www.wisig.org
  31. Pingback: rxtrustpharm.com
  32. Pingback: RxTrustPharm
  33. Pingback: viagra online
  34. Pingback: viagra sex
  35. Pingback: stendra vs viagra
  36. Pingback: combivent nz
  37. Pingback: diamox online

Leave a Reply