O
O
ololoshka12020-06-09 14:11:43
WordPress
ololoshka1, 2020-06-09 14:11:43

Can't edit category with ACF?

Created categories, and decided to edit each of them with the help of ACF.
I created a category.php file, added the_field where necessary, checked everything in the settings as needed, Taxonomy-category, labels converge by name, but after adding text, for example, it simply is not added, maybe something needs to be written to allow editing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Yanchevsky, 2020-06-10
@ololoshka1

If you have added a Category field, then in category.php try the following:

$cat_id = get_queried_object_id();
the_field( 'НАЗВАНИЕ_ПОЛЯ', 'category_' . $cat_id );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question