Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/09/2015, 18:33
Avatar de NSD
NSD
Colaborador
 
Fecha de Ingreso: mayo-2012
Ubicación: Somewhere
Mensajes: 1.332
Antigüedad: 12 años
Puntos: 320
Wordpress - Mostrar últimos 2 posts de cada catagoria

Hola gente, espero alguien me pueda ayudar, tengo este archivo home.php
Código PHP:
Ver original
  1. <?php get_header(); ?>
  2.             <?php get_sidebar('top'); ?>
  3.             <?php
  4.             if (have_posts()) {
  5.                 /* Display navigation to next/previous pages when applicable */
  6.                 if (theme_get_option('theme_' . (theme_is_home() ? 'home_' : '') . 'top_posts_navigation')) {
  7.                     theme_page_navigation();
  8.                 }
  9.                 ?>
  10. <?php
  11. for ($i = 0; $i < $wp_query->post_count; $i++) {
  12.     theme_get_next_post();
  13. }
  14. ?>
  15.                 <?php
  16.                 /* Display navigation to next/previous pages when applicable */
  17.                 if (theme_get_option('theme_bottom_posts_navigation')) {
  18.                     theme_page_navigation();
  19.                 }
  20.             } else {
  21.                 theme_404_content();
  22.             }
  23.             ?>
  24.             <?php get_sidebar('bottom'); ?>
  25. <?php get_footer(); ?>
El theme tiene una barra lateral vertical a la derecha.

Asi como esta lista los ultimos posts cargados en una lista bastante larga, lo que me pidieron es que muestre sin la barra lateral, en dos culumnas, los ultimos 2 posts de cada categoria, es decir, el nombre de una categoria + los ultimos dos posts de esa, el nombre de otra categoria + los dos ultimos posts de esa, se entiende?

¿Como puedo hacerlo?
__________________
Maratón de desafíos PHP Junio - Agosto 2015 en FDW | Reglamento - Desafios