Wordpress Custom Post Types

Discussion in 'Integration' started by fertilepress, Jul 1, 2011.

  1. fertilepress

    fertilepress Member

    Joined:
    Dec 6, 2008
    Messages:
    96
    I have created a Custom Post Type but it doesn't include the standard aMember Protection Settings & aMember ShortCodes Help sections.

    Are Custom Post Types supported in the aMember plugin? What do I need to do make these appear?

    Thanks!

    renee
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can add protection block to custom page type.
    Edit /wp-content/plugins/wp/post_protection.php and change this:
    PHP:
    function amember_post_protection_init(){
      
    add_meta_box'amember_sectionid'__("aMember Protection Settings"),
                    
    'amember_block_text''post''advanced','high' );
      
    add_meta_box'amember_sectionid'__("aMember Protection Settings"),
                    
    'amember_block_text''page''advanced','high' );
      
    add_meta_box'amember_shordcodes_sectionid'__("aMember ShortCodes Help"),
                    
    'amember_shortcodes_description''post''advanced','high' );
      
    add_meta_box'amember_shordcodes_sectionid'__("aMember ShortCodes Help"),
                    
    'amember_shortcodes_description''page''advanced','high' );
    }
    to
    PHP:
    function amember_post_protection_init(){
      
    add_meta_box'amember_sectionid'__("aMember Protection Settings"),
                    
    'amember_block_text''post''advanced','high' );
      
    add_meta_box'amember_sectionid'__("aMember Protection Settings"),
                    
    'amember_block_text''page''advanced','high' );
      
    add_meta_box'amember_sectionid'__("aMember Protection Settings"),
                    
    'amember_block_text''YOURCUSTOMPOSTTYPE''advanced','high' );

      
    add_meta_box'amember_shordcodes_sectionid'__("aMember ShortCodes Help"),
                    
    'amember_shortcodes_description''post''advanced','high' );
      
    add_meta_box'amember_shordcodes_sectionid'__("aMember ShortCodes Help"),
                    
    'amember_shortcodes_description''page''advanced','high' );
    }

  3. rpauletto

    rpauletto New Member

    Joined:
    Aug 24, 2012
    Messages:
    1
    Hi, I think I have the same problem.
    I have a custom page type and I want to protect a category within that page type, but the "protection enabled" option doesn't show, although it shows inside the post.
    How can I fix that?
    Thanks
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Please contact us in helpdesk I will send development version of plugin which should allow to do what you need.

Share This Page