• Resolved cristobal-barrientos

    (@cristobal-barrientos)


    HI!

    Block created with Block Lab works perfectly fine in any post, but using “Ultimate Addons for Gutenberg” plugin, which can show a “post grid” with “post extract”, block just dissapears… when you go to see the actual post, you can see the block.

    ANy way to solve this?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi @cristobal-barrientos,
    Thanks for bringing this up.

    Hm, do other dynamic blocks like ‘Latest Comments’ and ‘Archives’ work with the plugin ‘Ultimate Addons for Gutenberg’?

    Thread Starter cristobal-barrientos

    (@cristobal-barrientos)

    Hello!

    Not sure what you mean by “other dynamic blocks” *with* UAG; It’s the block that I made through BLOCK LAB that doesn’t show: a URL type of field. BUt if it worth somewthing, yes all other posts that has “native” blocks, for example, the “native” button block that comes with gutenberg, shows fine both in extract and the post intself.

    Thank you!

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    OK, so it sounds like the Core blocks ‘Latest Comments’ and ‘Archives’ blocks work with ‘Ultimate Addons for Gutenberg’.

    I was trying to narrow down the problem.

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi @cristobal-barrientos,
    Could you please add detailed steps to reproduce this, along with a screenshot of the problem?

    The ‘Post Grid’ block looks fine alongside a Genesis Custom Blocks block in my local, but I don’t think I’m capturing what you mentioned.

    https://cldup.com/q9XKFVPfJx.png

    • This reply was modified 4 years, 4 months ago by Ryan Kienstra.
    Thread Starter cristobal-barrientos

    (@cristobal-barrientos)

    Helo!!

    Thank you for your response!
    I get what you say! But when I said it didn’t show, I meant at the front-end.
    When I use UAG to show a post grid, i can set to show the excerpt of each post in the grid, then I can show to show only the extract or the full content of the post.

    Turns out I have 2 posts, both with an image and button:

    -One post has a button made with BLOCK LAB (blue colored)
    embajadores-2

    and It shows OK in the backend
    emabajdores-1

    -Second post with a button made eith the WP “core” button block. (gray colored)
    enabajdores-3

    Also shows OK in the backend.

    But when I see the post grid in the frontend, only the WP core button shows in the grid.
    emabajdores-4

    I hope it’s more clear now? THANK YOU SO MUCH!!

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi @cristobal-barrientos,
    Ah, that makes sense. Thanks a lot for your screenshots.

    It might be a day before I can get back to you if that’s alright, tomorrow will be busy.

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi @cristobal-barrientos,
    Sorry for the long delay.

    This should fix it:

    
    
    /**
     * Add Block Lab blocks to those that will appear in the excerpt.
     */
    add_filter(
    	'excerpt_allowed_blocks',
    	static function( $allowed_blocks ) {
    		return array_merge(
    			$allowed_blocks,
    			[
    				'block-lab/boton-eqos',
    			]
    		);
    	}
    );
    
    

    In that snipped, boton-eqos is the name (slug) of the Block Lab block. Feel free to add more blocks to that array.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Block not showing on post extract’ is closed to new replies.