/*
Template Name: Home page
*/
?>

 

$cats_right=””;
$category_slider_right= of_get_option(‘category_on_right_slider’);
if (of_get_option(‘number_offset_post_right’)){$number_offset_post_right = of_get_option(‘number_offset_post_right’);}else{$number_offset_post_right = 0;}

$cats_right = ”;
if(!empty($category_slider_right)) {

foreach($category_slider_right as $key=>$value) { if($value == 1) { $cats_right[] = $key; } }
}

$post_array_right = array(
‘showposts’ => 3,
‘category__in’ => $cats_right,
‘ignore_sticky_posts’ => 1,
‘offset’ => $number_offset_post_right
);
$jellywp_widget_right = new WP_Query($post_array_right);
$i=0;
while ($jellywp_widget_right->have_posts()) {
$jellywp_widget_right->the_post();
$i++;
$post_id = get_the_ID();
//get all post categories
$categories = get_the_category(get_the_ID());
?>


else{echo ‘‘;} ?>


if ($categories) {
echo ‘‘;
foreach( $categories as $tag) {
$tag_link = get_category_link($tag->term_id);
$titleColor = categorys_title_color($tag->term_id, “category”, false);
echo ‘‘;
}
echo “
“;
}
}?>

 


 

 

 

 

while (have_posts()) { the_post();
the_content();
}}
?>

 

Deixe um comentário