Custom Field column created for Taxonomy returning Term ID only
-
I am having problems reflecting tax terms used to tag other taxonomy terms in Admin columns; I seem to only be able to return the term ID, not its name.
Note: I am using Admin Columns Pro to display this column field; Advanced Custom Fields does not do it automatically.
—
For example: My taxonomy could be Animals; so terms could be: dog, cat, mouse.. etc. I create a separate taxonomy called Gender to use to tag these animals. Hence terms would be male, female. I then use ACF to create a custom field called ‘gender’ to show up for Animal term types edit pages. After tagging Animal terms with Gender terms, the admin columns of taxonomy Animals is not able to return the Gender term object (term name) it only returns the term ID.
—
ACF’s ‘gender’ custom field setting’s would include Field Type set to ‘Taxonomy’, Taxonomy set to gender & input field type set to single input. Toggling between Return Value as Term Object or Term ID or selecting “Load value based on the post’s terms and update the post’s terms on save” also doesn’t change the outcome of the column field value returned.
—
Admin Column settings of Animals custom field settings would include Custom Field set to ACFs custom ‘gender’ field + Field Type set to Default. I have tried alternating Field Type settings through ‘Term Name (Term ID’s)’, ‘Default’, ‘Post Title (Post ID’s)’ & Multiple Values -none of them are allowing column field to return correct term object value.Anyone else having similar concerns? I am suspecting Admin Column is displaying the value incorrectly. Any Ideas, suggestions?
- The topic ‘Custom Field column created for Taxonomy returning Term ID only’ is closed to new replies.