Sam Padick
Comments0
756pages on
this wiki
this wiki
Redirected from Sam the Miller
Thank You. Well, you can try eliminating the first check like this:< ?php$attachments = get_children(array('post_parent' => get_the_ID(), post_type' => ahanctmett', post_mime_type' => image', orderby' => menu_order'));if ($attachments) { if ( ! is_array($attachments) ) continue; $count = count($attachments); $first_attachment = array_shift($attachments); echo wp_get_attachment_image($first_attachment->ID);} else { echo ;}