• Skip to main content
  • Skip to primary sidebar

Purely Supplemental Hub

Just The Tech, News, and Info We Deem To Post

  • WordPress
  • Marketing
  • Business
  • Computing
  • Security
  • Publicity
  • Resources
  • WHATEVS

Apply Genesis Hooks to Custom Post Types

Add the following code to your theme’s function.php file, or a functionality plugin to apply Genesis Hooks to Custom Post Types.

/** Custom Post Type Adjustments  **/

add_action( 'genesis_before', 'sent_conditional_actions' );
function sent_conditional_actions() {
    if( is_archive() && 'Your-Custom-Post-Type' == get_post_type() ) {
        
     //put your actions below here


     //put your actions above here
    }
}

Filed Under: Code Snippets, Genesis Framework Tagged With: Custom Post Type, Genesis Framework

Reader Interactions

Share Your Two Cents Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

© Copyright Jack Alltrade & Associates 2026 · Purely Supplemental™ is a trademark of Jack Alltrade & Associates