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.

I've got a problem. I don't want duplicate posts. Any way to check if a post already exists and if it does just set the new one to draft? I am using IFTTT to update my blog and sometimes it posts multiple times.

share|improve this question
    
What is "IFTTT"? –  Joseph Sep 17 '12 at 3:17
    
IFTTT is a social media helper site, "If This, Then That." It allows you to set up internet actions based on triggers. –  Liana Mir Sep 17 '12 at 8:53

1 Answer 1

up vote 1 down vote accepted

I have no idea what IFTTT is but you can use the save_post action hook to do a check for duplicate posts. This hook runs whenever a post is created or updated you would then be able to right your own code to check against existing posts.

http://codex.wordpress.org/Plugin_API/Action_Reference/save_post

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.