How to Exclude a Page from the Pages Widget in WordPress


One of our students asked us how to remove a link from a left menu. In his case the link was coming from the Pages Widget, so we created this tutorial for him.

This tutorial will walk you through step by step how to exclude a page from the Pages Widget in WordPress


Find the Page ID

First step is to find the Page ID. Use the “How to Find the Page ID in WordPress” tutorial.

Exclude by Page ID from Pages Widget


Click on Widgets >> and Pages >> then enter the Page ID that you found in the first step.

Once you’re done, save.

{loadposition wordpressnewsletter}



  • Nick Savov

    Nick is the Director of Support at OSTraining and you can find him in almost every area of the site, from answering support requests and account questions to creating tutorials and software.

0 0 votes
Blog Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
David Birkin

Thank you for this, Saved me a little headache on my new WordPress Site!


Hi, and how do I exclude all pages but a few chosen?


Hugo, ive had a look my end on my WordPress site and from what I can see, you would need to include all of the pageIDs separate by commas.

Marlaena Kessick

[quote=Hugo]Hi, and how do I exclude all pages but a few chosen?[/quote]


You would simply list all of the IDs in the “Exclude:” box that are to be excluded. [u]Use a comma to separate the IDs.[/u]  


Hello, I want to exclude Home Page from Pages widget. And there is no Page id for Homepage. How to remove it?


Simple go to Pages and click on the Home page as if to edit it.  Look up in the URL.  The Page ID is hidden in the URL. Look for “post= ” and a number to the right.  That number is your Page ID. Hope this helps. 

Would love your thoughts, please comment.x