This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="display: table; width: 100%; height: 100%;"> | |
<div style="display: table-cell; vertical-align: middle;"> | |
<!-- Content --> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get all attachments from a post, except the featured image | |
function get_attached_images ( $post_ID, $featured_image = false ) { | |
$args = array( | |
'post_type' => 'attachment', | |
'posts_per_page' => -1, | |
'post_parent' => $post_ID | |
); | |
// do we want the featured image? |
NewerOlder