Strange issue with gallery when displays 3 columns

Couldn’t you make it shorter by doing the following? function meks_gallery_atts($output, $pairs, $atts) { $output = array(); if (in_array($output[‘size’], array(1,2,3,4,5,6,7,8))) { $output[‘size’] = ‘square_thumb_’ . $output[‘size’]; }else{ $output[‘size’] = ‘square_thumb_9′; } return $output; } It sounds like $atts[‘columns’] is never 3. Have you tried strict-checking on strings, rather than loose-checking on integers? is using this: … Read more

How to get next image with this code from same post?

I’m afraid that your code doesn’t make much sense (especially the part with foreach loop…), but here’s how it can look like… $attachments = get_children( array( ‘numberposts’ => -1, ‘order’ => ‘ASC’, ‘post_mime_type’ => ‘image’, ‘post_parent’ => $posid, ‘post_type’ => ‘attachment’, ) ); // print image 0 if ( array_key_exists( 0, $attachments ) ) { … Read more

Text lost under image after WordPress 5.0 upgrade

Interesting problem… I went into the page in Chrome and used the Development Tools (ctrl+shift+I) or just right click on the element and select Inspect. The images are being displayed in a Flexbox and it looks like there is a conflict between the Flexbox and the blocks above it. There are a number of ways … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)