After update, the field ACF not appear in page
-
Hi thank you for your job.
Your plugin is very well thought out !I updated the plugin yesterday, and I have a problem with my template page.
Before the update the fields of ACF, get_the_excerpt() and the_post_thumbnail_url( ‘thumbnail’ ) displayed well
since the update this is no longer displayed.Can you help me please ?
This my code :
<?php /** * This template will be provided with the variable $a_z_query which is an A_Z_Listing instance. * You can override this template by copying this file into your theme directory. */ ?> <?php if ( $a_z_query->have_letters() ) : ?> <div id="az-slider"> <div id="inner-slider"> <?php while ( $a_z_query->have_letters() ) : $a_z_query->the_letter(); ?> <?php if ( $a_z_query->have_items() ) : ?> <div class="letter-section" id="<?php $a_z_query->the_letter_id(); ?>"> <h2> <span><?php $a_z_query->the_letter_title(); ?></span> </h2> <div><ul> <?php while ( $a_z_query->have_items() ) : $a_z_query->the_item(); ?> <li> <div class="auteurs table_auteur"> <div class="row_auteur"> <div class="cell_auteur auteur_1"> <a href="<?php $a_z_query->the_permalink(); ?>" title="<?php $a_z_query->the_title(); ?>"> <?php if (has_post_thumbnail( $post->ID ) ){ ?> <img src="<?php echo the_post_thumbnail_url( 'thumbnail' ); ?>" width="100%" alt="Photo de <?php $a_z_query->the_title(); ?>"/> <?php }else{ ?> <img src="<?php echo get_template_directory_uri()."/img/auteur.jpg" ?>" width="100%" alt="Photo de <?php $a_z_query->the_title(); ?>"/> <?php } ?> </a> </div> <div class="cell_auteur auteur_2"> <h3><?php $a_z_query->the_title(); ?><span class="date"> <?php if(!empty(get_field('date_de_deces'))&&(!empty(get_field('date_de_naissance')))){?> <?php echo "[".get_field('date_de_naissance')." - ".get_field('date_de_deces')."]"; ?> <?php } else{ if(!empty(get_field('date_de_naissance'))&&(empty(get_field('date_de_deces')))){ ?> <?php echo "[".get_field('date_de_naissance')." à aujourd'hui]"; ?> <?php } } ?></span></h3> <p> <?php echo get_the_excerpt(); ?><br> <a href="<?php $a_z_query->the_permalink(); ?>" title="<?php $a_z_query->the_title(); ?>">Lire la suite</a> </p> </div> </div> </div> </li> <?php endwhile; ?> </ul></div> <div class="back-to-top"><a href="#letters">Retour en haut</a></div> </div> <?php endif; ?> <?php endwhile; ?> </div> </div> <?php else : ?> <p><?php esc_html_e( 'There are no posts included in this index.', 'a-z-listing' ); ?></p> <?php endif;
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘After update, the field ACF not appear in page’ is closed to new replies.