_linee ricerca test
1000,
‘paged’ => $paged,
‘post_type’ => ‘page’,
‘meta_key’ => ‘responsabile’,
//’tax_query’ => array(array(‘taxonomy’=> ‘linea-di-ricerca’,’field’ => ‘slug’, terms =>’teatro-musica-e-cinema’)),
);
/**/
$pages = get_posts($args);
if($pages)
{
echo “
Elenco progetti (tutti)
- “;
- Elenco progetti (per docente responsabile)
“;
// The Query
$args = array(‘orderby’ => ‘name’,’role’ => ‘Docente’);
$docente = get_users ($args);
$args = array(‘orderby’ => ‘name’,’role’ => ‘Docente_evoluto’);
$docente_evoluto = get_users ($args);
$users = array_merge($docente, $docente_evoluto);
if ( !empty( $users ) ) {
foreach ( $users as $user ) {
$IdUtente = $user->ID;$args = array(
‘meta_key’ => ‘responsabile’,
‘meta_value’ => $IdUtente,
‘post_type’ => ‘page’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => 1000,);
$pages = get_posts($args);
if($pages)
{echo “Docente Responsabile: “.get_user_meta( $IdUtente, “first_name”, “true”).” “.get_user_meta($IdUtente, ‘last_name’, ‘true’).”
“;
echo “- “;
- ID) . ‘”>’.$page->post_title. ‘
foreach($pages as $page)
{
//$custom_field = get_post_custom($page->ID);
//var_dump($custom_field); # DEBUG
echo ‘‘;}
echo “
“;
}} //endforeach
} //endif?>
—-
‘name’,’role’ => ‘Docente’);
$docente = get_users ($args);
$args = array(‘orderby’ => ‘name’,’role’ => ‘Docente_evoluto’);
$docente_evoluto = get_users ($args);
$users = array_merge($docente, $docente_evoluto);
if ( !empty( $users ) ) {$IdUtente = “63”; //toglierlo
$args = array(
‘meta_key’ => ‘responsabile’,
‘meta_value’ => $IdUtente,
‘post_type’ => ‘page’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => 1000,);
$pages = get_posts($args);
if($pages)
{echo “Progetti di Ricerca
“;echo “
- “;
- ID) . ‘”>’.$page->post_title. ‘
foreach($pages as $page)
{
//$custom_field = get_post_custom($page->ID);
//var_dump($custom_field); # DEBUG
echo ‘‘;}
echo “
“;
}} //endif
?>
‘name’,’role’ => ‘Docente’);
$docente = get_users ($args);
$args = array(‘orderby’ => ‘name’,’role’ => ‘Docente_evoluto’);
$docente_evoluto = get_users ($args);
$users = array_merge($docente, $docente_evoluto);
if ( !empty( $users ) ) {$IdUtente = “63”; //toglierlo
$args = array(
‘meta_key’ => ‘responsabile’,
‘meta_value’ => $IdUtente,
‘post_type’ => ‘page’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => 1000,);
$pages = get_posts($args);
if($pages)
{echo “Progetti di Ricerca
“;echo “
- “;
- ID) . ‘”>’.$page->post_title. ‘‘;
$content = $page->post_content;
$excerpt = substr($content, 0, 230);
echo ‘
‘.$excerpt.’…‘;
echo ‘
foreach($pages as $page)
{
echo ‘‘;
}
echo “
“;
}} //endif
?>
foreach($pages as $page)
{
echo ‘