How to Unlist a Page (Public link works, hidden from homepage/listings)
When to use this: You want to send someone a direct link to a page, but don’t want it showing up in the homepage grid, category pages, or search.
Steps:
- Find the page’s post ID
- In wp-admin, go to Pages (or Posts)
- Hover over “Edit” under the page you want to hide
- Look at the URL shown at the bottom of your browser — it’ll contain
post=XXXX - That number is the post ID
- Make sure the page’s Visibility is set to Public (not Private, not Password Protected, not Draft). Public is what keeps the direct link working.
- Edit
functions.php- wp-admin → Appearance → Theme File Editor
- On the right-hand file list, select Theme Functions (functions.php)
- Scroll to the bottom of the file, find the
turk_exclude_steps_from_loopsfunction
- Add the new post ID to the
$excludedarray, separated by a comma:
$excluded = array( 322, NEW_ID_HERE );
- Click Update File
- Verify in an incognito window:
- Homepage/category pages → the page should no longer appear
- The direct URL → should still load normally












