How to get post ID from button and pass title to Modal
When we display post data in model with on click of button we have to provide the post-id with data attribute in for specific model target. Please add post-id in data-target in anchor tag as well as in main div tag ID. I have modified your code here: <div><?php echo wp_get_attachment_image($image_upload,$size=”full”);?><br/> <span class=”name”><?php echo $title; … Read more