Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1423900

    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?

    #1424016

    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

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