예제 #1
0
파일: faq.php 프로젝트: robwri32/garland
function venedor_faq_init()
{
    register_post_type('faq', array('labels' => venedor_labels('FAQ', 'FAQs'), 'exclude_from_search' => true, 'has_archive' => false, 'public' => true, 'rewrite' => array('slug' => 'faq-items'), 'supports' => array('title', 'editor'), 'can_export' => true));
    register_taxonomy('faq_cat', 'faq', array('hierarchical' => true, 'labels' => venedor_labels_tax('FAQ Category', 'FAQ Categories'), 'query_var' => true, 'rewrite' => true));
}
예제 #2
0
function venedor_portfolio_init()
{
    register_post_type('portfolio', array('labels' => venedor_labels('Portfolio', 'Portfolios'), 'exclude_from_search' => false, 'has_archive' => false, 'public' => true, 'rewrite' => array('slug' => 'portfolio-items'), 'supports' => array('title', 'editor', 'thumbnail', 'comments', 'page-attributes'), 'can_export' => true));
    register_taxonomy('portfolio_cat', 'portfolio', array('hierarchical' => true, 'labels' => venedor_labels_tax('Portfolio Category', 'Portfolio Categories'), 'query_var' => true, 'rewrite' => true));
    register_taxonomy('portfolio_skills', 'portfolio', array('hierarchical' => true, 'labels' => venedor_labels_tax('Portfolio Skill', 'Portfolio Skills'), 'query_var' => true, 'rewrite' => true));
}
예제 #3
0
파일: block.php 프로젝트: robwri32/garland
function venedor_static_block_init()
{
    register_post_type('block', array('labels' => venedor_labels('Block', 'Blocks'), 'exclude_from_search' => true, 'has_archive' => false, 'public' => true, 'rewrite' => array('slug' => 'static-block-items'), 'supports' => array('title', 'editor'), 'can_export' => true));
}