Wordpress Custom Post Type and Bootstrap Modal
问题 I am using Advanced Custom Posts and Custom Post Types plugin for my WP site. How can I make a custom post show on the Bootstrap modal depending on the trigger button? I want it to show inside the modal's .modal-body . I found a solution somewhere here but it requires putting the modal syntax inside the while loop and every time there's a new custom post, the modal syntax is repeated which is not nice. I am still a newbie and studying AJAX / JSON request but can't get it to work. I think it's