agan master ane minta petunjuknya dong...
ane lg bikin page yg isinya postingan dari kategori, nyoba2 al hasil tampil semua kayak gini :
Spoiler for hasil:
pengennya kayak gini gan :
Spoiler for hope:
ini listingnya :
Spoiler for listing php:
<?php
/*
Template Name: Page Custom
*/
?>
<?php get_header(); ?>
<?php if ( $paged < 2 ) : // Do stuff specific to first page ?>
<?php get_sidebar(); ?>
<div class="sekapur-sirih">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<br>
<div class="entry">
<?php the_excerpt('<p class="serif">'.__('Read the rest of this page »','public').'</p>'); ?>
<?php wp_link_pages(array(__('before','public') => '<p><strong>',__('Pages:','public'),'</strong> ',__('after','public') => '</p>','next_or_number' => __('number','public'))); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link(__('Edit this entry.','public'), '<p>', '</p>'); ?>
</div>
<?php endif; ?>
<div class="ebook">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$sticky=get_option('sticky_posts');
$args=array(
'category_name'=>'sertifikasiguru',
'caller_get_posts'=>1,
'post__not_in' => $sticky,
'paged'=>$paged,
'posts_per_page'=>6,
);
query_posts($args);
while(have_posts()) : the_post();
?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="metadata">
<?php _e('by','public'); ?> <?php the_author_posts_link(); ?>
<span class="time"><?php the_date('d F Y') ?> <?php the_time(); ?></span> <?php edit_post_link(__('Edit','public'), '', ''); ?>
</div>
<div class="entry">
<?php the_content(__('Read the rest of this entry →','public')); ?>
</div>
<div class="botmeta">
<div class="tagged">
<?php the_tags('Tags: ', ', ', '<br />'); ?>
</div>
<div class="entry-box">
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</div>
</div>
</div>
<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { ?>
<div class="navinavi">
<?php
wp_pagenavi(); ?>
</div>
<br class="clear" />
<?php } else { ?>
<div class="navigation">
<div class="alignleft">
<?php next_posts_link(__('← Previous Entries','public')) ?>
</div>
<div class="alignright">
<?php previous_posts_link(__('Next Entries →','public')) ?>
</div>
</div>
<?php } ?>
</div>
<?php get_footer(); ?>
makasi banyak sebelumnya