Hey!
I can’t select a taxonomy term name as query criteria for a Relationship field, since it uses id’s in the plugin:
foreach( $taxonomies as $k => $v )
{
$options['tax_query'][] = array(
'taxonomy' => $k,
'field' => 'id',
'terms' => $v,
);
}
(core > fields > relationship.php:303-310)
Changing ‘id’ to ‘name’ in the plugin and e.g. ‘categories:2’ to ‘categories:Guests’ in functions.php works, but would require changing the plugin after every update. Is there a better way to do this?
I want to make this work, because although the name of the term will stay the same (registered in functions.php, just like my custom fields), the id can change from environment to environment (e.g. dev vs. production).
I hope this is placed correctly, because it could also be a feature request, but I’m not sure.
Meta: I also opened a support ticket about this, because I didn’t receive an email with a password set link. Resetting the password afterwards with the username I wanted did work though, which is why I’m able to post here now. Will open a ticket about that issue.