Support

Account

Home Forums ACF PRO Why custom fields ACF doesn't appear on the category page?

Helping

Why custom fields ACF doesn't appear on the category page?

  • I have posts in loop which have custom fields from ACF. All working good, but this fields (it’s link field) don’t show on category page. Only this. Fields like img, text work good.

    Part of the code in my loop file for categories:

    
    <?php if( have_rows('model-wrp') ): ?>
                  
      <?php while( have_rows('model-wrp') ): the_row(); 
                  
      // vars
      $modelPassport = get_sub_field('model-passport');
      $modelRecomendation = get_sub_field('model-recomendation');
      $modelPreview = get_sub_field('model-preview');
                      
      ?>
    
        <div class="series__item-links">
        
          <?php if( $modelPassport ): ?>
            <a href="<?php echo $modelPassport; ?>">Link №1</a>
          <?php endif; ?>
                              
          <?php if( $modelRecomendation ): ?>
            <a href="<?php echo $modelRecomendation; ?>">Link №2</a>
          <?php endif; ?>
                              
          <?php if( $modelPreview ): ?>
            <a href="<?php echo $modelPreview; ?>">Link №3</a>
          <?php endif; ?>
        
        </div>
        
      <?php endwhile; ?>
                            
    <?php endif; ?>
    
    
  • Can’t say that I completely understand the problem from your description. Which fields are not showing correctly and what type of fields are they?

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Why custom fields ACF doesn't appear on the category page?’ is closed to new replies.