Hi,
I have a custom post type named “hexon_voertuig” and i want to display the posts with this type in a gallery. Found a solution ons this support forum and added the following code to function.php, but no luck.
<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/
/* to support displaying custom post types */
add_theme_support(‘add_avia_builder_post_type_option’);
add_theme_support(‘avia_template_builder_custom_post_type_grid’);
/* to display advanced portfolio setting */
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(‘portfolio’, ‘page’, ‘post’,’hexon_voertuig’), ‘context’=>’normal’, ‘expandable’=>true );
$boxes[] = array( ‘title’ =>__(‘Layout’,’avia_framework’ ), ‘id’=>’layout’, ‘page’=>array(‘portfolio’, ‘page’, ‘post’, ‘hexon_voertuig’), ‘context’=>’side’, ‘priority’=>’low’);
$boxes[] = array( ‘title’ =>__(‘Additional Portfolio Settings’,’avia_framework’ ), ‘id’=>’preview’, ‘page’=>array(‘portfolio’, ‘hexon_voertuig’), ‘context’=>’normal’, ‘priority’=>’high’ );
return $boxes;
}
?>
What is wrong with the code?
Regards Freek
Hi Freek!
Are you referring to the Masonry gallery? If your using the latest version of Enfold then you can select it to display a custom taxonomy in the shortcode options.
Regards,
Elliott