'left', 'alt' => $title, 'title' => $title)); ?>
get_the_ID(),
'post_type' => 'attachment',
'numberposts' => 1, // show all -1
'post_status' => 'inherit',
'post_mime_type' => 'image',
'order' => 'ASC',
'orderby' => 'menu_order ASC'
) );
if (!empty($attachments)){
foreach ( $attachments as $attachment_id => $attachment ) { $post_image_data = wp_get_attachment_image_src( $attachment_id, $size='300sq-thumbnail' ); ?>
ID;
$the_content =$wpdb->get_var("SELECT post_content FROM $wpdb->posts WHERE ID = $id");
$pattern = '!
...more"; ?>