• 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

How To Remove Specific Pages From Custom Post Type Archive

This code enables you to remove one or more pages from your custom post type archive page loop.

Simply add the code to your child themes functions file and replace the post I.D in the following code with your own post I.D or comma separated post I.D’s for the pages you want to exclude from the archive.

You’ll also need to swap out the name of the CPT (portfolio) with your own.

Register for full access

Custom Post Type

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