Forums

Custom Field Template
How do I integrate this into custom post? (1 post)

  1. shawnsong
    Member
    Posted 8 months ago #

    I am writing my own post type by using register_post_type(). But how can show this plugin when I am adding a new post? The parameters I am using now are:

    $labels = array(
    'name' => _x('Latest News', 'post type general name'),
    'singular_name' => _x('Latest News', 'post type singular name'),
    'add_new' => _x('Add New', 'Latest News'),
    'add_new_item' => __('Add New Latest News'),
    'edit_item' => __('Edit Latest News'),
    'new_item' => __('New Latest News'),
    'view_item' => __('View Latest News'),
    'search_items' => __('Search Latest News'),
    'not_found' => __('No Latest News found'),
    'not_found_in_trash' => __('No Latest News found in Trash'),
    '_builtin' => true,
    'parent_item_colon' => ''
    );

    $args = array(
    'labels' => $labels,
    'public' => true,
    'publicly_queryable' => true,
    'exclude_from_search' => false,
    'show_ui' => true,
    'query_var' => true,
    'rewrite' => true,
    'capability_type' => 'post',
    'hierarchical' => false,
    'menu_position' => 20,
    'supports' => array('title','editor','author','thumbnail','excerpt','comments','custom-fields'),
    'taxonomies' => array('category', 'post_tag')
    );
    register_post_type('latest-news',$args);

    http://wordpress.org/extend/plugins/custom-field-template/

Reply

You must log in to post.

About this Plugin

About this Topic