Forums

Setting the taxonomy name programmatically (1 post)

  1. wjdennen
    Member
    Posted 1 year ago #

    Hi,

    When using wp_set_object_terms, it does what it says, namely:

    Relates an object (post, link etc) to a term and taxonomy type (tag, category, etc). Creates the term and taxonomy relationship if it doesn't already exist.

    However, when it creates a new term, it sets the "name" and the "slug" to the same thing.

    Is there a way to set the "name" and slug to different values (when using add_term_relationship)? I know I can go in and edit the taxonomy terms after the fact by hand. I'd like to do this programatically.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic