I want my custom taxonomy to print the term that I set in Advanced Custom Fields.

Asked 5 months ago, Updated 5 months ago, 12 views

I would like to set up a custom taxi called maker for the custom post type, and display information such as the description of the maker on each maker's list page.

"Information such as description of maker" was set in Advanced Custom Fields and entered information, but
I don't know how to output the term set in Advanced Custom Fields.

I can't find out even if I look into various things.
If anyone knows, please let me know.

maker→Customer company
List page for each maker→Each trading company

wordpress 5.4


2022-09-30 11:24

1 Answers


In order to print custom fields within a custom taxi, use ok as follows:

If you change the following two items to the one you set, you can print them without any problems.

·3 names of custom taxonomies
·One custom field

$term_slug=get_query_var('Custom Taxonomy Name');
$term_ID = get_term_by('slug', $term_slug, 'Custom Taxonomy Name') ->term_id;
$hoge=the_field('Name of custom field added to custom taxonomies', 'Name of custom taxonomies_'.$term_ID);


2022-09-30 11:24

If you have any answers or tips

© 2023 OneMinuteCode. All rights reserved.