Append Media/Attachment IDs to Gallery Shortcode HTML Output

WordPress already does this, in at least 2 ways For example, here is an <img> tag from a standard gallery block on my local test install: <img src=”http://one.wordpress.test/wp-content/uploads/2020/03/80694475_10220097889178767_6336534537924771840_n.jpg” alt=”” data-id=”15″ data-full-url=”http://one.wordpress.test/wp-content/uploads/2020/03/80694475_10220097889178767_6336534537924771840_n.jpg” data-link=”http://one.wordpress.test/?attachment_id=15″ class=”wp-image-15″ srcset=”http://one.wordpress.test/wp-content/uploads/2020/03/80694475_10220097889178767_6336534537924771840_n.jpg 750w, http://one.wordpress.test/wp-content/uploads/2020/03/80694475_10220097889178767_6336534537924771840_n-300×229.jpg 300w” sizes=”(max-width: 750px) 100vw, 750px”> There is a data attribute: data-id=”15″ A HTML class: class=”wp-image-15″ A link to the … Read more

Images hidden from wordpress gallery

If you don’t move to gallery from db, gallery not showing items. Because gallery is not showing up all files in uploads folder, show only uploaded from wordpress, mean: if you want to see any images on gallery you must be upload from wordpress (admin panel, codeline or etc)

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