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

    Hey guys– I am diving into the Custom Post Type code as I have this current project and a couple upcoming client projects that will lean heavily on this.

    I installed the CPT UI Plugin and Registered ‘Regions’.

    I added this code snippet to my Child Theme Functions.php file:

    // Add Advanced Layout Builder to Custom Post Types
    function avf_alb_supported_post_types_mod( array $supported_post_types )
      $supported_post_types[] = 'REGIONS';
      return $supported_post_types;
    add_filter('avf_alb_supported_post_types', 'avf_alb_supported_post_types_mod', 10, 1);

    Things look good initially… CPT Regions shows in the Admin Panel. I create a new post, and the ALB Editor is showing up…
    However… the G. Block Editor is above it. Only content added in the Block Editor is rendering in the post, and content rendering in the ALB section s below are not.

    The normal behavior for Posts, Pages, Portfolio is to have an ALB button at the top which disables the Block Editor, but that isn’t happening either (I;’m assuming this is the root of the problem).

    What am I missing?


    Hey Scott,

    Thank you for the inquiry.

    You should use the slug/name of the custom post type and it should be lowercase and contain less than 20 characters, so the following line is technically invalid, but it will still work.

     $supported_post_types[] = 'REGIONS';

    It should be:

    $supported_post_types[] = 'regions';

    You might have to edit the custom post type settings in the CPT UI panel.

    The block or Gutenberg editor should not be accessible when the advance layout builder is active, so something is not working right in your installation. Please provide the login details in the private field so that we can check it.

    Best regards,

    This reply has been marked as private.


    Thank you for the update.

    We don’t see the Gutenberg or block editor when we switch to the Advance Layout Builder/ALB. Can you give us a screenshot of the issue? You can upload the screen capture to imgur or dropbox. We modified the “Croatia” post in the Regions post type. (see private field)

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.