Archive for the ‘’ Category
Posts Tagged ‘’
Archive for
Archive for
Archive for
Author Archive
Blog Archives
id="post-">
'attachment',
'post_mime_type' => 'image',
'numberposts' => -1,
'order' => 'ASC',
'post_status' => null,
'post_parent' => $post->ID
);
$attachments = get_posts($args);
if ($attachments) {
foreach ($attachments as $attachment) {
$img = wp_get_attachment_thumb_url( $attachment->ID );
break;
}
//Display image
}
?>
Sorry, but there aren't any posts in the %s category yet.", single_cat_title('',false));
} else if ( is_date() ) { // If this is a date archive
echo("Sorry, but there aren't any posts with this date.
");
} else if ( is_author() ) { // If this is a category archive
$userdata = get_userdatabylogin(get_query_var('author_name'));
printf("Sorry, but there aren't any posts by %s yet.
", $userdata->display_name);
} else {
echo("No posts found.
");
}
get_search_form();
?>