Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress Users with Tags as Taxonomy


  • ch1n3s3b0y
    Participant

    @ch1n3s3b0y

    Hi

    Is there anyway to set ‘tags’ for users as a taxonomy, similar to how tags are used for WP posts?

Viewing 2 replies - 1 through 2 (of 2 total)

  • Henry Wright
    Moderator

    @henrywright

    Hi @ch1n3s3b0y

    Do you mean create a new custom taxonomy called users and then each time a user registers, you want a new term to be created?

    If so then check out these resources:

    https://codex.wordpress.org/Taxonomies

    You’ll need to use register_taxonomy() to create your new taxonomy (see here)

    To insert a new term you can use wp_insert_term() (see here)

    When you come to write your function, hook it to the bp_core_signup_user action.


    ch1n3s3b0y
    Participant

    @ch1n3s3b0y

    Thanks Henry! I’ll give that a go and see if it works how I want.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BuddyPress Users with Tags as Taxonomy’ is closed to new replies.
Skip to toolbar