• i added this lines to check if title exists.but something is not right.
    i’m using post id as permalinks but i don’t want users to create many posts with the same title like:Avatar.

    // check if title $my_post_name already exists in wpdb
    global $wpdb;
    if($wpdb->get_row(“SELECT post_title FROM wp_posts WHERE post_title = ‘” . $my_post_name . “‘”, ‘ARRAY_A’)) {
    echo $my_post_name.’ already exists’; }

    https://www.ads-software.com/extend/plugins/one-quick-post/

  • The topic ‘[Plugin: One Quick Post] check if post title exists’ is closed to new replies.