Пример #1
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));
}
Пример #2
0
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));
}