wp_insert_post adding quotation marks to tags (1 post)

  1. Rebecca O'Brien
    Posted 6 years ago #

    I'm passing an array of tags into the $post['tags_input'] field, and then passing that into wp_insert_post($post). I've also tried just using an imploded string (surrounded by single quotes, double quotes, or nothing).

    No matter how I pass in the values for the tags, the first tag starts with a double quote, and the last tag ends with a double quote. I've gone through all the functions used, var_dumped them all, and can't find where these extra quotation marks are being added.

Topic Closed

This topic has been closed to new replies.

About this Topic