Checkbox to Remove Specific Posts & Pages From Your Home Page Loop

This code adds a checkbox below the editor on all Edit screens for posts and pages. The box enables you to hide specific posts and pages from your front page loop.

You can use this code to remove/add single posts/pages on any/all archive page types.

Demo Video

Shows the checkbox added to the edit screen enabling admins to remove single posts or pages from the home page loop.

Tested using the Mai Display theme for Genesis however will work in any Genesis child theme.

Installation Steps

There’s 2 steps :

  1. # Upload the file named genesis-inpost-remove-post.php file to your child theme folder like this :
  2.  

  3. # Copy & paste the PHP code ( excluding the opening PHP tag ) to the end of your child themes functions file.
  4.  

Download Folder

Custom Field (Post Meta) Parameters

Uses get to retrieve the value of the $wp_query variable key meta_query containing an array of key/value pairs.

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.