WordPress.org

Ready to get started?Download WordPress

Forums

Radio Station
How to add a comments section to the show page? (2 posts)

  1. Lorenc
    Member
    Posted 9 months ago #

    I would like to add a comments section to the show page. The single-show.php has <?php //comments_template( '', true ); ?> but no comments section is shown. Any help would be appreciated. Thanks!

    http://wordpress.org/plugins/radio-station/

  2. Nikki Blight
    Member
    Plugin Author

    Posted 8 months ago #

    I'll fix this in the next version. But if you want to turn it on now, add "comments" to the the "supports" options for the show's register_post_type call in includes/playlist.php.

    It's on line 57.

    register_post_type( 'show',
    		array(
    			'labels' => array(
    				'name' => __( 'Shows', 'radio-station' ),
    				'singular_name' => __( 'Show', 'radio-station' ),
    				'add_new' => __( 'Add Show', 'radio-station' ),
    				'add_new_item' => __( 'Add Show', 'radio-station' ),
    				'edit_item' => __( 'Edit Show', 'radio-station' ),
    				'new_item' => __( 'New Show', 'radio-station' ),
    				'view_item' => __( 'View Show', 'radio-station' )
    			),
    			'show_ui' => true,
    			'description' => __('Post type for Show descriptions', 'radio-station'),
    			'menu_position' => 5,
    			'menu_icon' => WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)) . 'images/show-menu-icon.png',
    			'public' => true,
    			'taxonomies' => array('genres'),
    			'hierarchical' => false,
    			'supports' => array('title', 'editor', 'thumbnail', 'comments'),
    			'can_export' => true,
    			'capability_type' => 'show',
    			'map_meta_cap' => true
    		)
    	);

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.