Ciao a tutti ! di solito leggo e non posto mai perchè trovo sempre soluzioni gia postate. Questa volta non trovo la soluzione a un problema:
il codice che segue è perfettamente funzionante per quanto riguarda gli articoli e le miniature linkate dal campo personalizzato dell’articolo.
query_posts(“cat=7&showposts=3”);
if (have_posts()) : while (have_posts()) : the_post();
if( get_post_meta($post->ID, “vedere”, true) ):
< img src=”echo get_post_meta($post->ID, “vedere”, true); ” alt=” the_title(); ” / >
endif;
Il problema sorge per i campi personalizzati delle pagine, quelli non me li legge, riesco a recuperare la meta_key con wp_list_pages(“title_li=&meta_key=pagina”) ma con get_post_meta($post->ID, “pagina”, true) non legge nulla. Io avrei bisogno di aggiungere, alla lista in alto degli articoli, anche delle liste pagine con un campo personalizzato specifico e associargli, come negli articoli, una determinata miniatura.
Grazie in anticipo per chi mi aiuterà !!!