• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Add Genesis Archive Settings to 3rd party Custom Post Type

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Add Genesis Archive Settings to 3rd party Custom Post Type

This topic is: resolved

Tagged: genesis archive settings

  • This topic has 2 replies, 2 voices, and was last updated 10 years ago by DTHkelly.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 19, 2015 at 1:25 pm #152808
    DTHkelly
    Member

    I'm trying to add Genesis Archive Settings to a 3rd party CPT.

    Events Maker by dFactory

    ChildTheme: Magazine Pro

    The Events archive is displaying the default Archive div (gray background) but I can't add text without the archive setting.

    This didn't work work:

    /*Events Maker by dFactory */
    if ( defined( 'EVENT_POST_TYPE' ) ) {
    	
    add_action('init', 'event_genesis_cpt_archives_settings_custom_init');
    function event_genesis_cpt_archives_settings_custom_init() {
    	
    add_post_type_support( 'event', 'genesis-cpt-archives-settings' );
    
    	}
    }

    Any suggestions?

    Test site (obvs!)
    http://vth.wpengine.com/events/

    Thanks!

    http://vth.wpengine.com/events/
    May 20, 2015 at 12:05 am #152858
    Genesis Developer
    Member

    This code is working for me

    if ( class_exists( 'Events_Maker_Post_Types' ) ) {
      add_action('init', 'event_genesis_cpt_archives_settings_custom_init');
      function event_genesis_cpt_archives_settings_custom_init() {
      	
        add_post_type_support( 'event', 'genesis-cpt-archives-settings' );
      
      }
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    May 20, 2015 at 5:17 am #152873
    DTHkelly
    Member

    Thank you - that worked for the back end!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add Genesis Archive Settings to 3rd party Custom Post Type’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble