• Resolved emcadesign

    (@emcadesign)


    Hi!

    My custom fileds/repeater stopped working. I have newest version of plugin and wordpress.

    On homepage I have three different custom fields and one custom post type – nothing is working. On blogpost I have some custom fields and they works!

    repeater:

    <ul class="icons">
      <?php foreach( get_cfc_meta( 'sluzby' ) as $key => $value ){ ?>
        <li>
    		    <p class="headline-3"><?php the_cfc_field( 'sluzby','nazev', false, $key ); ?></p>
    		    <h3><?php the_cfc_field( 'sluzby','popis', false, $key ); ?></h3>
    		    <div class="ico">
    		    	<img src="<?php the_cfc_field( 'sluzby','ikona', false, $key ); ?>">
    		    </div>
        </li>
    	<?php }  ?>
    </ul>

    custom post type

    <?php $args = array( 'post_type' => 'career');
      $loop = new WP_Query( $args );
      $a = 1;
      while ( $loop->have_posts() ) : $loop->the_post();?>
        <article class="position" id="position-<?php echo $a++ ?>">
        <div class="header">
          <p class="headline-2"><?php the_title(); ?></p>
          <a href="#link" class="close"><i class="fa fa-fw fa-times"></i></a>
        </div>
        <div class="content">
        
        </div>
    
        <div class="footer">
          <a href="#link" class="button open-popup apply-position" rel="apply-for-position">Apply</a>
        </div>
      </article>
      <?php wp_reset_postdata(); ?>
    <?php endwhile; ?>

    Can you please help me?

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

The topic ‘Custom fields/repeater stopped working’ is closed to new replies.