Ja also durch kommt er, aber ich bekomme ein lerres Array in der html wenn ich folgenden codeangebe.
PHP
/*-----------------------------------------------------------------------------------*/
/* Load all Images from a Post/*-----------------------------------------------------------------------------------*/
function show_all_thumbs() { global $post;
$post = get_post($post);
$countImg = 0;
/* image code */
$images =& get_children( post_type=attachment&post_mime_type=image&output=ARRAY_N&orderby=menu_order&order=ASC&post_parent='.$post->ID);
if($images){
$categories = get_the_category($post->ID);
var_dump($categories);
foreach( $images as $imageID => $imagePost ){
unset($the_b_img);
$the_b_img = wp_get_attachment_image($imageID, 'large', false);
$thumblist .= '<div id="images'.$classes[0].'" class="image_'.$countImg.'"><a href="'.get_attachment_link($imageID).'">'.$the_b_img.'</a></div>';$countImg++;}}
return $thumblist;}
Alles anzeigen