Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

am new to wordpress.I know how to create a custom page using page template.For ex.page-pagename.php or page-id.php/page-06.php. But i Dont know how to create a custom post like above.so please help me.

share|improve this question
    
What do you mean by custom post? You can create custom post type using codex.wordpress.org/Function_Reference/register_post_type –  Vinod Dalvi Sep 6 '13 at 9:01
    
I guess mathan is talking about page templates instead of custom post types. Mathan, you should check out some basic Wordpress theme building tutorials... codex also gets you started codex.wordpress.org/Template_Hierarchy codex.wordpress.org/Page_Templates –  jounileander Sep 6 '13 at 9:37

2 Answers 2

You can use this Custom Post Type Generator with Custom Fields , Once you finish you will be given some generated codes add them to functions.php.

Hope this Works for you.

Go to this link to create your Custom Post Type. http://themergency.com/generators/wordpress-custom-post-types/

share|improve this answer

You can create custom post type as like,

add_action( 'init', 'create_post_type' );
function create_post_type() {
    register_post_type( 'acme_product',
        array(
            'labels' => array(
                'name' => __( 'Products' ),
                'singular_name' => __( 'Product' )
            ),
        'public' => true,
        'has_archive' => true,
        )
    );
}

Include this function in your_theme/functions.php file. You can modify and improve it as per requirement. There is a nice official documentation describing how to create custom post types: http://codex.wordpress.org/Post_Types

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.