Ciao!
Ho un piccolo grattacapo con le query di WP.
Passo i dati di un custom field in una variabile
<?php $raccolta = get_post_meta($post->ID, "raccolta", $single = true); ?>
Fin qui tutto OK, il risultato è una lista di post ID cosi riportati: 125,300,450 ect ect.
Ora, mi trovo in difficolta a passare il valore all'interno di una query:
<?php
$args=array(
'post__in' => array($raccolta),
);
query_posts($args); ?>
Il problema è che la query legge solo il primo id della lista mentre gli altri non me li passa.
Dunque il risutato finale che legge, in una ipotetica lista 125,300,450, solo ID 125.
Come faccio a passare tutti gli ID nella varibile raccolta all'interno di post_in?
Grazie.