• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

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.

Custom Fields Meta Box

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.