How do i register a custom post type (single-xxx.php) which is quite similar to the standard post type?
thank you
Hey ewerde!
Everything you need to know from the friendly people at WordPress.org :)
http://codex.wordpress.org/Function_Reference/register_post_type
Cheers!
Rikard
and by the way if you want to activate advanced layout builder for your custom post type you can do it similar to post in child-theme functions.php:
add_filter('avf_builder_boxes','enable_boxes_on_posts');
function enable_boxes_on_posts($boxes) {
$boxes[] = array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('page','post', 'portfolio'), 'context'=>'normal', 'expandable'=>true );
$boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('page','post', 'portfolio'), 'context'=>'side', 'priority'=>'low');
$boxes[] = array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('page','post','portfolio'), 'context'=>'normal', 'priority'=>'high' );
return $boxes;
}