get_results("SELECT * FROM wp_posts WHERE post_type = 'page' AND ID in (2255,2425,2234,2247) ORDER BY FIELD (ID,84,224,239,262,275)"); $posts = $wpdb->get_results("SELECT * FROM wplip_posts WHERE post_type = 'page' AND ID in (2420,2247,2422,2251)"); //print_r($posts); foreach($posts as $elem){ //echo get_the_post_thumbnail( $elem->ID, 'thumbnail' ); //if($elem->post_excerpt=="") $html.='
nessuna
'; //else $title = $elem->post_title; $link = $elem->guid; $limite = 300; $text = (strlen($elem->post_content) > $limite) ? substr($elem->post_content, 0, $limite) . '...' : $elem->post_content; $html.='

'.$title.'

' .$text.'
 
'; } if(empty($posts)) $html="AAAAAAAAAAAAAAAAAaa"; //$html = 'link_image", 100, 100, true).'" />'; echo $html; } ?> aree di attività - Studio Legale Liparota

aree di attività