WordPress.org

Ready to get started?Download WordPress

Forums

podPress
[resolved] how do i enable podpress in custom post types (8 posts)

  1. pabile
    Member
    Posted 3 years ago #

    i created a custom post type that i call podcasts. i just learned recently that it cant be done because the podpress' post settings are not available.

    does anyone know how to enable this?

    http://wordpress.org/extend/plugins/podpress/

  2. ntm
    Member
    Plugin Author

    Posted 3 years ago #

    I see the problem. Thank you for writing this notice.

    Currently there is no option on one of the settings pages. But if you how to edit the function.php then you can switch the podPress box on with 2-4 lines of code: http://pastebin.com/CepfH6Kw

    Replace your_custom_post_type_slug with the slug of the post type.

    I will think about a way to add an option to the general settings page of podPress. But I'm not sure when I will have the time to do that. Maybe try this code snippet in the mean time.

    Regards
    Tim

  3. pabile
    Member
    Posted 3 years ago #

    thanks a lot for the time looking at this. i am having quite a problem, i think its because of the newbie in me :)

    i tried replacing function name add_podpress_to_custom_post_types but no good.

    add_action('admin_menu', 'add_podpress_to_custom_post_types');
    function add_podpress_to_custom_post_types() {
    	add_meta_box( 'podPressstuff', __('podPress - podcasting settings of this post', 'podpress'), 'podpress_box_content_post', 'pod', 'advanced' );
    }

    did i edit the correct term? tia

  4. ntm
    Member
    Plugin Author

    Posted 3 years ago #

    Hmm ... this looks right - as long as "pod" is the slug of your custom post type.

    Maybe you need to activate the podPress box in the screen options menu (below the header bar, on the right side).

    I have posted another snippet which includes also the code which I use to add the custom post type. That code is from the functions.php of my current theme.

    Do you use a plugin to add the custom post type? Which one?

    Regards,
    Tim

  5. ntm
    Member
    Plugin Author

    Posted 3 years ago #

    Here is the link: http://pastebin.com/yCRLf41i to the snippet which I have mentioned before.

  6. pabile
    Member
    Posted 3 years ago #

    oh! so "pod" is the custom post type slug!
    that did the trick.

    i am not using a plugin for the custom post type. using similar to yours. here's my final function:

    // CUSTOM POST TYPES
    	add_action( 'init', 'create_post_type' );
    	function create_post_type() {
    		register_post_type( 'ghg_podcast',
    			array(
    				'labels' => array(
    					'name' => __( 'Podcasts' ),
    					'singular_name' => __( 'Podcast' )
    				),
    				'public' => true,
    				'rewrite' => array('slug' => 'ghg_podcast')
    			)
    		);
    	} 
    
    	add_action('admin_menu', 'include_ghg_podcast');
    	function include_ghg_podcast() {
    		add_meta_box( 'podPressstuff', __('podPress - podcasting settings of this post', 'podpress'), 'podpress_box_content_post', 'ghg_podcast', 'advanced' );
    	}

    thanks a lot for your time, mate!

  7. ntm
    Member
    Plugin Author

    Posted 3 years ago #

    I'm glad that I could help.

    The upcoming version of podPress is going to contain a new option at the general settings page which will make it easier to add this box to the custom post type editor pages.

    Regards,
    Tim

  8. pabile
    Member
    Posted 3 years ago #

    neat! more power tim!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic