• myinstinctwaswrong

    (@myinstinctwaswrong)


    Can anyone point me to any info on changing/controlling WP from outside of WP?

    Specifically, I have a need to add/delete a particular tag on a particular post when a PHP condition outside of WP changes.

    I can locate the particular post as I have the $post->ID value, just looking for info on how to change a tag.

    regards,
    Mike

Viewing 1 replies (of 1 total)
  • Thread Starter myinstinctwaswrong

    (@myinstinctwaswrong)

    ok, so I’ve found wp_get_post_tags() and wp_set_post_tags()

    wp_get_post_tags() returns the current set of tags, but I can’t get the wp_set_post_tags() to actually change the tags.

Viewing 1 replies (of 1 total)
  • The topic ‘Changing post tags from outside of WP’ is closed to new replies.