Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /home/researc6/public_html/mediainnovationstudio.org/wp-content/themes/Corsa/functions/enqueue.php on line 31
[insert_php]

//$showposts = 5;
//$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;

if (isset($_REQUEST[‘pub’])){
$anchor = $_REQUEST[‘pub’];
$cat = array(get_cat_ID($anchor,193));
$args=array(
‘category__and’ => $cat,
‘orderby’ => ‘post_date’,
‘order’ => ‘DESC’,
‘post_status’ => ‘publish’,
‘posts_per_page’=> ‘-1’
);
echo “

$anchor Publications

“;
}else if (isset($_REQUEST[‘user’])){
$anchor = $_REQUEST[‘user’];
$args=array(
‘cat’ => 193,
‘posts_per_page’=> ‘-1’,
‘meta_query’ => array(
‘relation’ => ‘OR’,
array(
‘key’ => ‘author1’,
‘value’ => $anchor
),
array(
‘key’ => ‘author2’,
‘value’ => $anchor
),
array(
‘key’ => ‘author3’,
‘value’ => $anchor
),
array(
‘key’ => ‘author4’,
‘value’ => $anchor
),
array(
‘key’ => ‘author5’,
‘value’ => $anchor
)

)
);
echo “

$anchor’s Publications

“;
}

//print_r ($args);

$queryObject = new WP_Query($args);
print_r ($qry);
if ($queryObject->have_posts()) {
while ($queryObject->have_posts()) {
$queryObject->the_post();
echo ‘

‘;
the_title();
echo “

“;

}

[/insert_php]