Answer the question
In order to leave comments, you need to log in
How to display ACF on category page?
Worth the Flexible Content plugin. In a custom post type, I output it like this:
<?php
while ( have_rows('fixed_articles') ) : the_row(); ?>
<?php if( get_row_layout() == 'article' ): ?>
<?php if( get_sub_field("article_select") ): ?>
wefa
<?php else :?>
wefwef
<?php endif; ?>
<?php endif; ?>
<?php endwhile; ?>
Answer the question
In order to leave comments, you need to log in
<?php
$term = get_queried_object();
while ( have_rows('fixed_articles', $term) ) : the_row(); ?>
<?php if( get_row_layout() == 'article', $term ): ?>
<?php if( get_sub_field("article_select") ): ?>
wefa
<?php else :?>
wefwef
<?php endif; ?>
<?php endif; ?>
<?php endwhile; ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question