Instructions for Website

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:

  1. 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
  2. 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.
  3. 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_loops function
  4. Add the new post ID to the $excluded array, separated by a comma:
$excluded = array( 322, NEW_ID_HERE );
  1. Click Update File
  2. Verify in an incognito window:
    • Homepage/category pages → the page should no longer appear
    • The direct URL → should still load normally
  •