So, ich habe den Code mal etwas modifiziert. Es werden die Bilder angezeigt, aber nicht alle. Auch scheint mir das die CSS Datei nicht richtig eingebunden wird:
PHP
<?php
/**
Template Bilder
*/
get_header(); ?>
<div id="container">
<?php get_sidebar(); ?>
<div id="content" role="main">
<?php
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-index.php and that will be used instead.
*/
global $wp_query;
$new_query = array_merge( array( 'post_type' => 'attachment', 'post_status'=>'inherit', 'post_mime_type'=>'image' ), $wp_query->query );
unset( $new_query['pagename'] );
unset( $new_query['page_id'] );
query_posts( $new_query );
?>
<?php the_time('d.m.Y H:i'); ?> von <?php the_author(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="entry-content">
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_footer(); ?>
Alles anzeigen
Wäre super wenn ich eine Liste aller Bilder in der Mediathek bekäme, idealerweise mit der Bildbeschreibung.
Vielen Dank