add_attachment hook not firing on certain devices
add_attachment hook not firing on certain devices
add_attachment hook not firing on certain devices
How to Upload a media item with alt text and description
Simplifying ‘Add Media’ Modal in front-end Content Editor
Changing upload directory temporarily
wp media uploader and ID3 tags
Line 4139 of post.php in WP 6.2 branch has the error message, Content, title, and excerpt are empty.. Reviewing the previous lines of code, it should be excluded for attachments, but there may be a callback applied to the wp_insert_post_empty_content filter which is requiring attachments to also have content, title, and excerpt. Use Query Monitor … Read more
You should register the post type from the old theme, all the posts are still there in the database WordPress just doesn’t know to look for them. Use the register_post_type with the same slug/post type name, and your old portfolio posts will reappear, no need to detach and re-attach to new pages
Check folder permissions for wp-content/upload. It should be set to 755 or 775.
Approaching this from the SQL is a mistake, and instead a quick search of the official dev docs for filename reveals a filter named wp_allow_query_attachment_by_filename that is set to true by default: https://developer.wordpress.org/reference/hooks/wp_allow_query_attachment_by_filename/ apply_filters( ‘wp_allow_query_attachment_by_filename’, bool $allow_query_attachment_by_filename ) Filters whether an attachment query should include filenames or not. This means you can disable querying filenames … Read more
What you need is a way to scan your uploads directory and register any unregistered files. There are plugins that can help with this. One such plugin is “Add From Server“. This allows you to import media and files into the WordPress uploads manager from the server’s file system. Using this plugin, you can import … Read more