WordPress.org

Ready to get started?Download WordPress

Forums

wp_insert_post adding quotation marks to tags (1 post)

  1. Rebecca Schaefer
    Member
    Posted 5 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

  • RSS feed for this topic
  • Started 5 years ago by Rebecca Schaefer
  • This topic is not resolved
  • WordPress version: 2.7