Created
January 25, 2015 06:19
-
-
Save shahidulislamus/6f4e91bd92d45e7452a7 to your computer and use it in GitHub Desktop.
hear a slider post type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function slider_custom_post(){ | |
register_post_type('slider',array( | |
'public'=>true, | |
'label'=>'slider', | |
'labels'=>array( | |
'name'=>'slider', | |
'singular_name'=>'slide', | |
'add_new'=>'add a new slide', | |
), | |
'supports'=>array( | |
'title','thumbnail','excerpt', | |
), | |
)); | |
} | |
add_action('init','slider_custom_post'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment