• Resolved tdoccc

    (@tdoccc)


    Hi, just wondering if there are any plans to implement recognition for duplicate content (eg post-title – so if post-title still exists it will say “something with this name already exist!”)

    … Or any suggestions on methods of recognising existing page-title? Might attempt my own code…

    https://wordpress.org/plugins/frontend-uploader/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tdoccc

    (@tdoccc)

    Ok, if anyone needs to know – i did this myself. I utilised code from another plugin called ‘duplicate title checker’ but really all it involves is a global wpdb query matching $_POST[‘post_title’] and an if/else statement. This can be placed after line 341-343. the ‘if’ for a match can use wp_safe_redirect and $success=false etc. to generate an error response. ‘else’ will generate the rest of the code.

    Creating something like say “fu-error-post” in the function that displays response notices creates an exclusive error message for cloned posts (referenced as ‘response’ => ‘fu-error-post’)
    it’s a shame i have to modify the plugin to do this and

    Thread Starter tdoccc

    (@tdoccc)

    it’s a shame i have to modify the plugin to do this and all but i couldn’t really think of any other method.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto approved post upload – recognise duplicate title?’ is closed to new replies.