name;
echo ‘
Daftar Resep ‘.$category.’
‘;
}
}
?>
-1, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘cat’ => get_cat_ID($category) ) );
$total_post = count ( $posts );
$tpost = $total_post / 5 + 1;
$cat_id = get_cat_ID($category);
$the_query = new WP_Query(array(‘cat’ => $cat_id, ‘post_status’ => ‘publish’, ‘showposts’ => $tpost, ‘orderby’ => ‘title’, ‘order’ => ‘asc’));
$tab1 = array();
while ($the_query->have_posts()) : $the_query->the_post();
$tab1[] = get_the_ID();
?>
-
$cat_id, ‘post_status’ => ‘publish’, ‘post__not_in’ => $tab1, ‘showposts’ => $tpost, ‘orderby’ => ‘title’, ‘order’ => ‘asc’));
$tab2 = array();
while ($the_query->have_posts()) : $the_query->the_post();
$tab2[] = get_the_ID();
?>
-
$cat_id, ‘post_status’ => ‘publish’, ‘post__not_in’ => $tab12, ‘showposts’ => $tpost, ‘orderby’ => ‘title’, ‘order’ => ‘asc’));
$tab3 = array();
while ($the_query->have_posts()) : $the_query->the_post();
$tab3[] = get_the_ID();
?>
-
$cat_id, ‘post_status’ => ‘publish’, ‘post__not_in’ => $tab123, ‘showposts’ => $tpost, ‘orderby’ => ‘title’, ‘order’ => ‘asc’));
$tab4 = array();
while ($the_query->have_posts()) : $the_query->the_post();
$tab4[] = get_the_ID();
?>
-
$cat_id, ‘post_status’ => ‘publish’, ‘post__not_in’ => $tab1234, ‘showposts’ => $tpost, ‘orderby’ => ‘title’, ‘order’ => ‘asc’));
$tab5 = array();
while ($the_query->have_posts()) : $the_query->the_post();
$tab5[] = get_the_ID();
?>
- Daftar Resep ‘ . $category->cat_name . ‘
‘;
}
?>
count / 5 + 1;
$the_query = new WP_Query(‘category_name=’ . $category->category_nicename . ‘&orderby=title&order=asc&showposts=’.$tpost);
$tab1 = array();
while ($the_query->have_posts()) : $the_query->the_post();
$tab1[] = get_the_ID();
?>
-
$category->category_nicename, ‘post__not_in’ => $tab1, ‘showposts’ => $tpost, ‘orderby’ => ‘title’, ‘order’ => ‘asc’));
$tab2 = array();
while ($the_query->have_posts()) : $the_query->the_post();
$tab2[] = get_the_ID();
?>
-
$category->category_nicename, ‘post__not_in’ => $tab12, ‘showposts’ => $tpost, ‘orderby’ => ‘title’, ‘order’ => ‘asc’));
$tab3 = array();
while ($the_query->have_posts()) : $the_query->the_post();
$tab3[] = get_the_ID();
?>
-
$category->category_nicename, ‘post__not_in’ => $tab123, ‘showposts’ => $tpost, ‘orderby’ => ‘title’, ‘order’ => ‘asc’));
$tab4 = array();
while ($the_query->have_posts()) : $the_query->the_post();
$tab4[] = get_the_ID();
?>
-
$category->category_nicename, ‘post__not_in’ => $tab1234, ‘showposts’ => $tpost, ‘orderby’ => ‘title’, ‘order’ => ‘asc’));
$tab5 = array();
while ($the_query->have_posts()) : $the_query->the_post();
$tab5[] = get_the_ID();
?>
-