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

    I have a custom post type, and ALB is turned on with the avf_builder_boxes filter. Everything has been working fine. We just started trying to use the “Social Share Buttons” widget, though, and it won’t show up. It shows up without issue on posts and pages, just not the custom post type.

    #1195886

    Hi pippylu,

    We apologize for the delayed response.
    And thanks for giving us admin access.
    After doing some tests on your site and trying to reproduce it on my local server the only conclusion I get is that it is caused by your child theme.
    To verify on this I have installed a child theme on your dev site which only includes creating the project post type and the code to activate ALB in custom post types and it does work properly.
    You can verify this by switching to the Enfold Child theme I have installed on your dev site.

    Also just a tip, you don’t need this code:

    /* ADD AFB TO CUSTOM POST TYPES  */
    add_filter('avf_builder_boxes', 'add_builder_to_posttype');
    function add_builder_to_posttype($metabox)
    {
    	foreach($metabox as &$meta)
    	{
    		if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout')
    		{
    			$meta['page'][] = 'program';
    			$meta['page'][] = 'project';
    			$meta['page'][] = 'event';
    			$meta['page'][] = 'resource';
    		}
    	}
    	return $metabox;
    }

    this is the code that you need to use (you can just add those other post types here):

    /* Fix Enfold Breaking Custom Post Types */
    function avf_alb_supported_post_types_mod( array $supported_post_types )
    {
      $supported_post_types[] = 'project';
      return $supported_post_types;
    }
    add_filter('avf_alb_supported_post_types', 'avf_alb_supported_post_types_mod', 10, 1);

    Best regards,
    Nikko

    #1198090

    Okay, thank you!

    #1198235

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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