News

[insert_php]$posts = get_posts(array(
‘post_type’ => ‘thegem_news’,
‘thegem_news_sets’ => ‘brsm-news’,
‘post_status’ => ‘publish’,
‘fields’ => ‘ids’,));
//loop over each post
foreach($posts as $p){
$content_post = get_post($p);
$title = $content_post->post_title;
$content = $content_post->post_content;
$content = apply_filters(‘the_content’, $content);
$content = str_replace(‘]]>’, ‘]]>’, $content);

echo “

“.$title.”

“;
echo “

“.$content.”

“;}[/insert_php]