Support

Account

Home Forums ACF PRO User taxonomies Reply To: User taxonomies

  • Ok, thank you. I was referring to Elliot’s last post: he says that now ACF stores and sync correctly taxonomy data for users. So that allows tax queries for users. But as you point, Wp_User_Query doesn’t support taxonomies yet and neither get_users… So I’m wondering if there is another way to query users ?
    I’m currently using get_queried_object to get the term id (on a custom taxonomy template page) and get_objects_in_term to get the users. But among the returned objects there are some posts, page and menu-items ! I could filter them out based on their post type but it would be much cleaner to query the users directly. This might be due to some remnants of old relationships present in the database because currently this custom taxonomy is only attached to users (through the use of the lh taxonomy plugin).