Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/12/2013, 08:55
Avatar de AlejandroGalvez
AlejandroGalvez
 
Fecha de Ingreso: noviembre-2013
Mensajes: 189
Antigüedad: 10 años, 5 meses
Puntos: 49
Respuesta: Dudas con plantillas category-slug.php

No no, TODA la consulta debe indicarse al inicializar WP_Query:

Código PHP:
<!-- Si utilizo el nombre de la categoría o slug --> 
<?php   
        $noticia1 
= new WP_Query('category_name=Noticia1&posts_per_page=3');    
    while (
$noticia1 -> have_posts() ) : $noticia1 -> the_post(); ?>
Como dije antes no puedes utilizar $query ( $noticia1->query( 'bla bla bla' ); ) dado que es una propiedad informativa, no un método o función.