I have a custom post type, I want to create a custom masonry display for it using the built in library.
How do I envoke masonry on my custom display / code?
Hey pebbledavelambert,
Thanks for your patience, the masonry element displays items based of their categories, does your CPT have any categories?
Please try creating specific categories for your CPT and then select those categories in the masonry element.
If you do have categories and they still don’t show please try adding this code to your child theme functions.php and modify for your CPT
function avf_alb_supported_post_types_mod( array $supported_post_types ) {
$supported_post_types[] = 'your-cpt';
return $supported_post_types;
}
add_filter('avf_alb_supported_post_types', 'avf_alb_supported_post_types_mod', 10, 1);
function avf_metabox_layout_post_types_mod( array $supported_post_types ) {
$supported_post_types[] = 'your-cpt';
return $supported_post_types;
}
add_filter('avf_metabox_layout_post_types', 'avf_metabox_layout_post_types_mod', 10, 1);
Best regards,
Mike