rendered paste body<?php get_header(); ?><div id="my_slideshow" class="slideshow"> <img src="wp-content/images/slideshow/1.jpg" alt="ConiHurtado" width="600" height="384" /></div> <script type="text/javascript"> myShow = new Slideshow('my_slideshow', {hu: 'wp-content/images/slideshow/', images: ['1.jpg','2.jpg','3.jpg','4.jpg','5.jpg','6.jpg','7.jpg','8.jpg']});</script><div id="columna_1"> <h1 class="titulo_a">Noticias</h1><?php $posts = query_posts('category_name=noticias&posts_per_page=5'); ?><!-- Parte el LOOP. --><?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><?php if ( in_category('3') ) { ?> <div class="col_1_post"> <?php } else { ?> <div class="post"> <?php } ?><!-- Fecha de la noticia. --><div class="col_1_fecha"><p><?php the_time('d.m.y'); ?></p></div><!-- Contenido Noticia. --> <div class="entry"><a href="<?php the_permalink(); ?>"><?php the_excerpt(); ?></a></div></div> <!-- Cerramos el div --><?php endwhile; else: ?><p>Sorry, no posts matched your criteria.</p><?php endif; ?></div> <!-- Cierro Columna_1 --><div id="columna_2"> <h1 class="titulo_b">Recientes</h1> <ul><?php $lastposts = get_posts('numberposts=11&category=12'); foreach($lastposts as $post) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>"><?php the_content('','false',''); ?><?php post_image('', true); ?></a></li> <?php endforeach; ?></ul></div><div id="columna_3"> <h1 class="titulo_b">Colecciones</h1><ul><?php foreach((get_categories('exclude=1,3,5,12&order=desc')) as $cat) { echo '<li><a href="http://s38929.gridserver.com/clientes/coni/category/' . $cat->category_nicename . '"><img src="http://s38929.gridserver.com/clientes/coni/wp-content/images/categorias/' . $cat->category_nicename . '.png" width="178" height="28" alt="' . $cat->cat_name . '" title="Obras del año '.$cat->cat_name . '" /></a></li> '; } ?></ul></div><div id="columna_4"> <h1 class="titulo_b">Exposiciones</h1> <?php $lastposts = get_posts('numberposts=3&category=24'); foreach($lastposts as $post) : setup_postdata($post); ?> <ul><li><a href="<?php the_permalink(); ?>"><?php the_content('','false',''); ?><?php post_image('', true); ?></a></li></ul> <?php endforeach; ?></div><div id="columna_5"> <h1 class="titulo_a">Curriculum</h1><?php $posts = query_posts('category_name=curriculum&posts_per_page=1'); ?><?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><?php if ( in_category('4') ) { ?> <div id="col_5"><?php } else { ?> <div class="post"><?php } ?><h1><?php the_title(); ?></h1><!-- Display the Post's Content in a div box. --><div id="col_5_post"> <?php the_excerpt(); ?></div></div> <!-- closes the first div box --> <!-- Stop The Loop (but note the "else:" - see next line). --> <?php endwhile; else: ?> <!-- The very first "if" tested to see if there were any Posts to --> <!-- display. This "else" part tells what do if there weren't any. --> <p>Sorry, no posts matched your criteria.</p> <!-- REALLY stop The Loop. --> <?php endif; ?></div> <div id="spacer"></div> <!--index.php end--><!--include footer--><?php get_footer(); ?>