Domanda

Sto cercando di mostrare gli ultimi messaggi utilizzando la funzione get_query_var. La funzione filtra i messaggi in base alla loro categoria. Quando sto visualizzazione dei messaggi sulla pagina in cui appaiono non differenziati anche se ho aggiunto la

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args=array(
'category__in'=>array( $cat),
'order' => ASC,
'caller_get_posts' => 1,
'paged'=>$paged,
'orderby' => date,
);
query_posts($args);

Come posso sorta correttamente?

È stato utile?

Soluzione

If something unexpected happens between query_posts() and get_post(), it is probably a plugin that hooks into the query and modifies it. Try disabling all plugins to see whether the problem disappears. Re-enable them one by one until you see the problem, that is the plugin that causes it.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a wordpress.stackexchange
scroll top