All WordPress Website Images Broken

It sounds like a frustrating issue, but there are a few troubleshooting steps you can take to try to resolve the problem: Check File Permissions: Ensure that the file permissions for your images in the hosting file manager are set correctly. They should typically be set to 644 for files and 755 for directories. Incorrect … Read more

Define how an attached image is rendered

To replace <img> tags with <picture> tags in the content of your posts, follow these steps: Add a filter for post content: This filter will modify the post content to replace <img> tags with <picture> tags, allowing for responsive images based on screen size and resolution. Implement the replacement function: The function replace_content_images_with_picture_tags will find … Read more

Get field added via attachment_fields_to_edit filter in Gutenberg

Yes, you’re right that the slimImageObject function is the reason why you’re seeing/getting only those limited list of props. But don’t worry, you can use wp.data.select( ‘core’ ).getMedia( <attachment id> ) to get the attribution meta (and any other meta or props in the full attachment object). Here’s an example that worked for me: items.map((item, … Read more