WordPress.org

Support

Support » Plugins and Hacks » podPress » [Resolved] how do i enable podpress in custom post types

[Resolved] how do i enable podpress in custom post types

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ntm

    @ntm

    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

    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

    Plugin Author ntm

    @ntm

    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

    Plugin Author ntm

    @ntm

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

    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!

    Plugin Author ntm

    @ntm

    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

    neat! more power tim!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] how do i enable podpress in custom post types’ is closed to new replies.
Skip to toolbar