Solved: ACF get_field() doesn’t work until manually saving post

This solution works for importing posts using the plugin: WP All Import (WPAI). Quick context: Advanced Custom Fields stores its field data in a way which requires more than just importing one field. You’ll find a lot of discussion around the search phrase “importing into Advanced Custom Fields doesn’t work until manually saving“. If you… Continue reading Solved: ACF get_field() doesn’t work until manually saving post

Delete Images from Media Gallery when Post moved to Trash

I have a client who sells unique products on their custom WordPress site. The products listed have limited quantities and once they’re sold they won’t be available again. From the front end, it’s easy enough to just “Trash” a post (product) and they won’t display. However, this could quickly lead to unnecessarily large storage on the server since… Continue reading Delete Images from Media Gallery when Post moved to Trash