Attachment page 404
Attachment page 404
Attachment page 404
How do I get all attachments that are used in the current post, not just the children?
hook wp_generate_attachment_metadata does not read all the attachments
I think I’d use the get_image_tag filter for this – it provides you with the size as one of the parameters. Something along the lines of: function wrap_wide_image_tags($html, $id, $alt, $title, $align, $size) { if($size == ‘wide-image’) { $html=”<div class=”wrap-wide-image”>”.$html.'</div>’; } return $html; } add_filter(‘get_image_tag’, ‘wrap_wide_image_tags’, 10, 6); Hope this helps!
Open the Attachment Details popup
Alright so I feel rather stupid now, especially because I have found the solution to my own problem right after posting my question here, but also because I would have found it much earlier had I properly debugged my page (implemented a way to look at return error codes). Anyways… As stated in my EDIT … Read more
How can I attach Facebook Open Graph data to an Attachment Page?
Is it possible to share media files between multiple WordPress sites?
As an alternative to the List View, you can use the Grid View by clicking the icon with 4 squares at the top of the Media Library when viewing all items. When clicking on an item, a modal will appear. It has navigation arrows at the top to left you quickly navigate items. Edits are … Read more
If you see the code of wp_delete_post() function, you can see that, the function is deleting the post’s meta data just before deleting the post itself – a line above with the delete_metadata_by_mid(). So, in your function, when you are trying to get the attachment URL, it’s already been deleted from the database, so it’s … Read more