Support

Account

Home Forums Front-end Issues Flexible fields in materialize modal

Unread

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:

    <?php
    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()):
    $loop->the_post();
    ?>

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

    <!– 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>
    <div class=”col s6″> ” alt=””></div>
    </div>
    </div>
    <div class=”modal-footer”>
    Fermer
    </div>
    </div>
    <?php endwhile ; ?>
    </main>
    <?php get_footer(); ?>

    https://drive.google.com/file/d/1tjS4W8SPg0REywSmkPN8_HAyZbJjhonv/view?usp=sharing
    https://drive.google.com/file/d/1fDhU0I8gv4aLafquz1EAfQ26CB_G3Tgn/view?usp=sharing

Viewing 1 post (of 1 total)

The topic ‘Flexible fields in materialize modal’ is closed to new replies.