Tema: Nuevo modulo
Ver Mensaje Individual
  #14 (permalink)  
Antiguo 01/05/2009, 15:19
Avatar de Anarninquë
Anarninquë
Colaborador
 
Fecha de Ingreso: julio-2005
Ubicación: MVD | Uruguay
Mensajes: 1.096
Antigüedad: 18 años, 10 meses
Puntos: 28
Respuesta: Nuevo modulo

Genial

Llamar al query_posts() pasando como parámetro $query_string sería como "llamar al query_string()" por defecto de WP.
Como antes llamamos en el header a los últimos 5 posts, esto es una forma de "limpiar el query" y que siga la ejecución normal... ;) se entiende?

Aquí una info (en inglés) obtenida de aquí:
Cita:
Place a call to query_posts() in one of your Template files before The Loop begins. The wp_query object will generate a new SQL query using your parameters. When you do this, WordPress ignores the other parameters it receives via the URL (such as page number or category). If you want to preserve that information, you can use the variable $query_string in the call to query_posts().
__________________
Marcelo Ferreiro - Desarrollador Web
Mi Web - Pixelar.me