Пример #1
0
function makeThem()
{
    $args = array('supports' => array('title', 'editor', 'page-attributes', 'custom'), 'hierarchical' => true);
    $sample = new post_type('sample', 'samples', false, $args);
    $sample->icon('person');
    new tax('color', 'colors', $sample, true, false);
}
Пример #2
0
function acpt_slider()
{
    //include('shortcodes.php');
    $args = array('supports' => array('title', 'page-attributes', 'acpt_slide_options'), 'hierarchical' => false, 'public' => false, 'has_archive' => false, 'show_ui' => true);
    $slide = new post_type('slide', 'slides', false, $args);
    $slide->icon('refresh');
    new tax('group', 'groups', $slide, true);
}