Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a easy way to delete post if image link in post is broken? I want to move large number of posts, but I noticed that some images may have broken links (to external sites) and images are missing. Rather than fixing all this, I would prefer simple to delete posts that have missing images. I noticed there is a script that can unlink broken link - so would be possible to just modify this and say if post have broken link (image or any other broken link) - delete post!

Please note I am very interested in this script and not any other solution to sort my website. This script or any other smart solution to automatically delete posts with rboken links would be greatly appreciated. Thanks good people.

share|improve this question
    
what have you tried so far? –  Sisir Nov 16 '13 at 7:14
    
Hi Sisir, unfortunately nothing. I am not developer, so don't have a clue where to start, but I notice 'broken link checker' plugins for WP that usually just remove url so it won't work. I was just curious if something similar can be done, but deleting the whole post instead. –  Larson Nov 16 '13 at 12:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.