$metadata = wp_get_attachment_metadata( $thumbnail_id ); $base_url = wp_upload_dir()['baseurl']; if ( ! empty( $metadata['sizes'] ) )…
Open WordPress Content or Post in modal Window
Sometimes you just want a simple modal popup for your content, not a new dedicated page. This is how to achieve this: https://allurewebsolutions.com/open-wordpress-post-modal-without-plugin
By the way: The total theme already offers a modal popup solution for posts and other content such as videos or images.
