thanks man. great work. i’ll definitely give it a try in my next (basically first) theme.
Hello there, I’m currently working on a theme that supports image, gallery, link and quote post formats. But the problem is that whenever I try to get attachments of a post that has a post-format other than standard (like image, gallery etc.) it returns an empty array. But when I use the same functions with standard post types, they work just fine and returns all the attachments. I have not been able to sort the problem yet. Here is the code that I use inside the loop:
<?php $children = get_children(array( 'post_parent' => $post->ID, 'post_type' => 'attachment' )); print_r($children); ?>
waiting for the reply, thanks in advance