Anchor not saving
- This topic has 2 replies, 2 voices, and was last updated 5 years, 7 months ago by
Johannes Gross.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
August 25, 2019 at 12:01 AM #15841
Johannes Gross
ParticipantLove this extension. Great job!
While working with it, I noticed that the anchor does not save and is not available through the callback attribute.
Here is a snippet of my code:
$meta_boxes[] = array( 'id' => 'twt-gallery-block', 'title' => 'TWT Gallery', 'type' => 'block', 'icon' => 'layout', 'category' => 'layout', 'render_callback' => array($this, 'render_block'), 'supports' => array( 'anchor' => true, 'customClassName' => true, ), 'fields' => array( array( 'name' => 'Images', 'id' => 'images', 'type' => 'image_advanced', ), array( 'name' => 'Row Height (px)', 'placeholder' => '300', 'id' => 'row_height', 'type' => 'number', ), array( 'name' => 'Displayed At Start', 'placeholder' => '20', 'id' => 'displayed_at_start', 'type' => 'number', ), array( 'name' => 'Load More Increments', 'placeholder' => '10', 'id' => 'load_more_increments', 'type' => 'number', ), array( 'name' => 'Last Row', 'id' => 'last_row', 'type' => 'select', 'options' => array( 'justify' => 'justify', 'nojustify' => 'don\'t justify' ) ), ) );
Not urgent...
August 26, 2019 at 9:16 PM #15862Anh Tran
KeymasterHi Johannes,
Thanks for your feedback. This is a Gutenberg problem and have fixed in this pull request. I think it'll be available in WordPress 5.2.3.
August 27, 2019 at 12:58 AM #15873Johannes Gross
ParticipantGreat! Thank you for your reply and for staying on top of this!
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.