problem with term containing ampsersand when calling wp_set_post_terms()
-
I don’t know if I’m doing something wrong. When I am calling wp_set_post_terms with a term containing an ampersand, a new term with that name is being created.
eg
wp_set_post_terms( $post_id, $taxo[$term]->name , $taxonomy, $append );
where $taxo[$term]->name = ‘lorem & ipsum’
However, when I rename the term to ‘lorem and ipsum’ I don’t have any issues.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘problem with term containing ampsersand when calling wp_set_post_terms()’ is closed to new replies.