Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #393283

    How do i register a custom post type (single-xxx.php) which is quite similar to the standard post type?

    thank you

    #393578

    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

    #393589

    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;
    }
    #394135

    Hey!

    Thanks @Guenni007 :)

    Regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.