Answer the question
In order to leave comments, you need to log in
Is it possible in Advanced Custom Fields and how?
Good afternoon.
Is it possible (and how) to write conditions to display fields in different categories and subcategories in the same template? For example:
The record shows the field "number of numbers" - display such and such fields
The record does not display the field (not filled) "number of numbers" - do not display such and such fields
Answer the question
In order to leave comments, you need to log in
Found it myself)
<?php if( get_field('field_name') ): ?>
<?php get_template_part( 'template_name' ); ?>
<?php endif; ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question