Add anchor tag on previous_image_link / next_image_link

i’m usig the code for create a link (next and prev) $attachments = array_values( get_children( array( ‘post_parent’ => $post->post_parent, ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order ID’ ) ) ); foreach ( $attachments as $k => $attachment ) : if ( $attachment->ID == $post->ID ) break; endforeach; … Read more

Options for an SEO gallery?

I believe your issue is that you’ve checked this box in the media settings: Every image uploaded afterwards had it’s thumbnail cropped to fit those proportions. Unchecking the box will fix this for new uploaded images but your existing photos will still be cropped. You can however regenerate the image thumbnails using the new settings. … Read more

How to refresh the Gallery images?

You can change this line: ‘orderby’ => ‘post__in’, to this: ‘orderby’ => ‘rand’, Instead of showing the images in the same order as they were passed to ‘post__in’, they will show in random order each time the page is loaded. Keep in mind that if you update the child theme, your change will be overwritten. … Read more

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