Home Forums Front-end Issues Flexible fields in materialize modal


Flexible fields in materialize modal

  • Hello guys i have problem with fields in modal (I use materialize). The modal display the same field for each picture it’s not flexible. When the field is not in the modal everything is okay.I don’t want to use plug-in. Please can you help me? Thanks. Here’s my code:

    if ( !function_exists(‘get_field’) ) return;

    <?php get_header();
    //Template Name:Lithographies

    <main class=”col xl9 l9 m8 s12″>
    <?php $loop = new WP_Query( array( ‘post_type’ => ‘lithographie’, ‘posts_per_page’ => 6, ‘paged’ => $paged) ); ?>
    <?php while($loop->have_posts()):

    <div class=”col xl4 l4 m4 s12″>
    ” alt=””>
    <!– Modal Trigger –>

    <!– Modal Structure –>
    <div id=”modal1″ class=”modal”>
    <div class=”row”>
    <div class=”modal-content”>
    <div class=”col s6″>

    <h4><?php the_title(); ?></h4><br>

    • Taille: <?php the_field(‘taille’); ?>
    • Nombre d’épreuve: <?php the_field(‘nombredepreuve’); ?>
    • Nombre d’éxemplaire: <?php the_field(‘nombredexemplaire’); ?>
    • Technique utilisée: <?php the_field(‘techniqueutilisee’); ?>
    • Papier utilisé: <?php the_field(‘papier’); ?>
    • <?php the_terms( $post->ID, ‘categorie’, ‘Categorie : ‘ ); ?>

    <div class=”col s6″> ” alt=””></div>
    <div class=”modal-footer”>
    <?php endwhile ; ?>
    <?php get_footer(); ?>

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.