0
                            <div class="col-lg-4 col-md-4 col-sm-6 exhibitors-child">
                                <div class="exhibitors-border">
                                    <?php the_post_thumbnail(); ?>
                                    <div class="find">
                                        <a href="" data-toggle="modal" data-target="#exhibitors-child"><small>FIND OUT MORE</small></a>
                                    </div>    
                                </div>
                            </div>

                            <?php endwhile; endif; wp_reset_query(); ?>

                            <!-- Modal -->
                            <div class="modal fade" id="exhibitors-child" tabindex="-1" role="dialog" aria-labelledby="exhibitors-childLabel" aria-hidden="true">
                                <div class="modal-dialog" role="document">
                                    <div class="modal-content">
                                        <div class="modal-body">
                                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                              <span aria-hidden="true">&times;</span>
                                            </button>
                                            <?php the_post_thumbnail(); ?>
                                            <h2><?php echo get_field('name') ;?></h2>
                                            <p><?php echo get_field('exhibitors_single_description') ;?></p>
                                        </div>
                                    </div>
                                </div>
                            </div>
0

Ensure you are using the correct template.

If you are on the single post type template you can use within your modal.

<?php the_content(); ?>

Learn more about post type templates here: https://codex.wordpress.org/Post_Type_Templates

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.