Answer the question
In order to leave comments, you need to log in
How to remove the additional field of the ACF plugin from the taxonomy heading in a cycle (Wordpress?
I can not display an additional field from the Advanced Custom Fields plugin in a cycle on a separate PAGE. What am I trying to do? I want to display an image in a block that is loaded in the additional field of a specific taxonomy 'software'
<div class="collection-list-wrapper w-dyn-list">
<div class="collection-list w-dyn-items w-row">
<?php
$current_page_id = get_the_ID();
$page_data = get_page(get_the_ID());
if( get_theme_mod('category_navigation_games') ) {
$args = array(
'hide_empty'=> 1,
'type' => 'software',
'orderby' => 'name',
'taxonomy' => 'software',
'order' => 'ASC'
);
$software = get_terms('software');
$allowed_html = array(
'a' => array(
'href' => true,
'title' => true,
'img' => true,
),
'br' => array(),
'em' => array(),
'strong' => array(),
'img' => array()
);
if( $software ){
?>
<?php }
} ?>
<?php
foreach($software as $soft) { ?>
<div class="learn-collection-item w-clearfix w-dyn-item w-col w-col-6">
<a href="<?php echo esc_url( get_term_link($soft->slug, 'software') ); ?>" title="<?php echo esc_attr($soft->name); ?>" class="provider-card w-inline-block">
<div class="provider-graphic-wrapper">
<div style="background-image:url("<?php if( get_field('ССАНА_ТУМБА_КАРТИНКИ') ): ?>
<img src="<?php the_field('thumbnail'); ?>" />
<?php endif; ?>")" class="provider-graphic">
</div>
</div>
<div class="provider-card-content">
<h3 class="provider-head"><?php echo esc_attr($soft->name); ?></h3>
<p class="provider-p">
<?php echo wp_kses( $soft->description, $allowed_html ); ?>
</p>
</div>
</a>
</div>
<?php } ?>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question