Revision: 24418
Updated Code
at March 4, 2010 05:30 by ignacio
Updated Code
<!-- el CSS que se tendrÃa que añadir a style.css al final de todo (un ejemplo, se puede hacer con px) --> .columna{ width:30%; float:left; margin-right:3% } .columna h5 a{ color:#D90819 } <!-- el HTML y PHP en index.php, etc--> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃÂa 1' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃÂa 1">CategorÃÂa 1</a></h5> <?php $posts = get_posts('category_name=noticias&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃÂa 2' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃÂa 2">CategorÃÂa 2</a></h5> <?php $posts = get_posts('category_name=cine&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃÂa 3' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃÂa 3">CategorÃÂa 3</a></h5> <?php $posts = get_posts('category_name=musica&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div>
Revision: 24417
Updated Code
at March 4, 2010 05:21 by ignacio
Updated Code
<!-- el CSS que se tendrÃa que añadir a style.css al final de todo (un ejemplo, se puede hacer con px) --> .columna{ width:30%; float:left; margin-right:3% } .columna h5 a{ color:#D90819 } <!-- el HTML y PHP en index.php, etc--> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃÂa 1' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃÂa 1">CategorÃÂa 1</a></h5> <?php $posts = get_posts('category_name=noticias&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃÂa 2' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃÂa 2">CategorÃÂa 2</a></h5> <?php $posts = get_posts('category_name=cine&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃÂa 3' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃÂa 3">CategorÃÂa 3</a></h5> <?php $posts = get_posts('category_name=musica&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div>
Revision: 24416
Updated Code
at March 4, 2010 05:14 by ignacio
Updated Code
<!-- el CSS que se tendrÃÂa que añadir a style.css al final de todo (un ejemplo, se puede hacer con px) --> .columna{ width:30%; float:left; margin-right:3% } .columna h5{ color:#D90819 } <!-- el HTML y PHP en index.php, etc--> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃa 1' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃa 1">CategorÃa 1</a></h5> <?php $posts = get_posts('category_name=noticias&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃa 2' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃa 2">CategorÃa 2</a></h5> <?php $posts = get_posts('category_name=cine&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃa 3' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃa 3">CategorÃa 3</a></h5> <?php $posts = get_posts('category_name=musica&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div>
Revision: 24415
Updated Code
at March 4, 2010 05:13 by ignacio
Updated Code
<!-- el CSS que se tendrÃÂa que añadir a style.css al final de todo (un ejemplo, se puede hacer con px) --> .columna{ width:30%; float:left; margin-right:3% } <!-- el HTML y PHP en index.php, etc--> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃa 1' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃa 1">CategorÃa 1</a></h5> <?php $posts = get_posts('category_name=noticias&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃa 2' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃa 2">CategorÃa 2</a></h5> <?php $posts = get_posts('category_name=cine&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $category_id = get_cat_ID( 'CategorÃa 3' ); $category_link = get_category_link( $category_id ); ?> <h5><a href="<?php echo $category_link; ?>" title="CategorÃa 3">CategorÃa 3</a></h5> <?php $posts = get_posts('category_name=musica&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div>
Revision: 24414
Updated Code
at March 2, 2010 13:18 by ignacio
Updated Code
<!-- el CSS que se tendrÃa que añadir a style.css al final de todo (un ejemplo, se puede hacer con px) --> .columna{ width:30%; float:left; margin-right:3% } <!-- el HTML y PHP en index.php, etc--> <div class="columna"> <?php $posts = get_posts('category_name=noticias&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $posts = get_posts('category_name=cine&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $posts = get_posts('category_name=musica&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div>
Revision: 24413
Updated Code
at March 1, 2010 14:39 by ignacio
Updated Code
<!-- el CSS que se tendrÃÂa que añadir a style.css al final de todo (un ejemplo, se puede hacer con px) --> .columna{ width:30%; float:left; margin-right:3% } <!-- el HTML y PHP en index.php, etc--> <div class="columna"> <?php $posts = get_posts('category_name=noticias&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $posts = get_posts('category_name=cine&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $posts = get_posts('category_name=musica&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div>
Revision: 24412
Updated Code
at March 1, 2010 14:38 by ignacio
Updated Code
<!-- el CSS que se tendrÃÂa que añadir a style.css al final de todo (un ejemplo, se puede hacer con px) --> .columna{ width:30%; float:left; margin-right:3% } <!-- el HTML y PHP en index.php, etc--> <div class="columna"> <?php $posts = get_posts('category_name=noticias&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $posts = get_posts('category_name=cine&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $posts = get_posts('category_name=musica&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div>
Revision: 24411
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 1, 2010 14:28 by ignacio
Initial Code
<!-- el CSS que se tendrÃa que añadir a style.css (un ejemplo, se puede hacer con px) --> .columna{ width:30%; float:left; margin-right:3% } <!-- el HTML y PHP en index.php, etc--> <div class="columna"> <?php $posts = get_posts('category_name=noticias&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $posts = get_posts('category_name=cine&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div> <div class="columna"> <?php $posts = get_posts('category_name=musica&numberposts=3'); foreach($posts as $post): setup_postdata($post); ?> <h5><?php the_category(); ?></h5> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> <?php $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo '<a href="'; echo get_tag_link($tag); echo '">'; echo $tag->name . ' '; echo '</a>'; } } ?> <?php endforeach; ?> </div>
Initial URL
Initial Description
Initial Title
HTML / CSS creando varios loops en varias columnas
Initial Tags
wordpress
Initial Language
PHP