How to return output of the new wp gallery block for automatically Link images To Media file

Sorry for the repeated questions but I didn’t get any solution yet! I’m stuck with that!! I mange a multi writers blog, and all our users uploading some gallery images, and they didn’t know the difference between (attachment, media file or none). I found solution to hide the linking panel, but I am editing all … Read more

WordPress Block Variation for Gallery Columns

I had this code to extend the column count to 10 for a specific need. wp.blocks.registerBlockVariation(‘core/gallery’, { name: ‘prefix-gallery’, title: ‘Custom Gallery’, attributes: { columns: 10, }, isDefault: true, }); But that doesn’t seem to work any longer. I see the updated Block Gallery attributes has this: attributes: { { columns: { “type”: “number”, “minimum”: … Read more

problem with nextgen plugin

I have a problem with Nextgen gallery,after activating some plugins it doesn’t show the submit buttons(insert, cancel). Then i have deactivated all plugins, but that doesn’t help. I haven’t any experience with wordpress, so any suggestions would be very useful. Thanks much 1 Answer 1 one of those weird problems. try deactivating – reactivating nextgen … Read more

Getting attachment images is cloning some of them

So, i got this code to retrieve the images inserted in a gallery within a post: <?php $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’=>’inherit’, ‘post_mime_type’ => ‘image’, ‘post_parent’ => $post->ID, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’ ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { $image_attributes = wp_get_attachment_image_src( $attachment->ID, … Read more