Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
October 17, 2014 at 5:20 pm #337451
hey, I found a couple of threads that pointed me in the right direction for this:
and
https://kriesi.at/support/topic/displaying-custom-post-types-inside-of-the-avia-layout-builder/
But I am struggling in getting it to work by using the filter on my child theme’s functions.php.
here is the code I am trying to use:
$boxes = array( array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('portfolio','page','post','comercio'), 'context'=>'normal', 'priority'=>'high', 'expandable'=>true ), array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('portfolio', 'page' , 'post','comercio'), 'context'=>'side', 'priority'=>'low'), array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('portfolio'), 'context'=>'normal', 'priority'=>'high' ), array( 'title' =>__('Breadcrumb Hierarchy','avia_framework' ), 'id'=>'hierarchy', 'page'=>array('portfolio'), 'context'=>'side', 'priority'=>'low'), ); $boxes = apply_filters('avf_builder_boxes', $boxes);
unfortunately this doesn’t seem to work as I still don’t get the Avia Layout builder on my custom post type.
I appreciate directions.
Thanks
October 17, 2014 at 5:34 pm #337467Nevermind, I was able to figure it out by the help of another post. Here is the correct code in case someone is trying to do the same thing:
// Add Avia Layout support for custom post type Comercios add_filter('avf_builder_boxes','custom_post_types_options'); function custom_post_types_options($boxes) { $boxes = array( array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('portfolio','page','post','comercio'), 'context'=>'normal', 'priority'=>'high', 'expandable'=>true ), array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('portfolio', 'page' , 'post','comercio'), 'context'=>'side', 'priority'=>'low'), array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('portfolio'), 'context'=>'normal', 'priority'=>'high' ), array( 'title' =>__('Breadcrumb Hierarchy','avia_framework' ), 'id'=>'hierarchy', 'page'=>array('portfolio'), 'context'=>'side', 'priority'=>'low'), ); return $boxes; }
October 20, 2014 at 9:07 am #338199 -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- The topic ‘Enable Avia layout builder on custom post types’ is closed to new replies.