A
A
Alexander Kovalenko2016-02-17 12:47:19
WordPress
Alexander Kovalenko, 2016-02-17 12:47:19

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

2 answer(s)
M
Marina Lebedeva, 2016-02-17
@Margo_shka

Have you looked at dependencies?

A
Alexander Kovalenko, 2016-02-17
@AlexusTdV

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 question

Ask a Question

731 491 924 answers to any question