Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bikin file category baru misalnya: category-table.php
- Isinya
- <?php global $theme; get_header(); ?>
- <div id="main">
- <?php $theme->hook('main_before'); ?>
- <div id="content">
- <?php $theme->hook('content_before'); ?>
- <div style="text-align: center !important;">
- <img src="http://jdih.natunakab.tk/images/logo-natunakab.png" style="width:150px;"/><br/>
- <h3><b>DAFTAR PERATURAN DAERAH (PERDA)<br/>
- KABUPATEN NATUNA</b></h3>
- </div>
- <?php wpbeginner_numeric_posts_nav(); ?>
- <div class="entry clearfix"></div>
- <table class="myTable" >
- <tr>
- <td bgcolor="#253B80" style="text-align: center; color: #ffffff; font-weight:bold;">NO</td>
- <td bgcolor="#253B80" style="text-align: center; color: #ffffff; font-weight:bold;">PERDA KABUPATEN NATUNA</td>
- <td bgcolor="#253B80" style="text-align: center; color: #ffffff; font-weight:bold;">TAHUN</td>
- <td bgcolor="#253B80" style="text-align: center; color: #ffffff; font-weight:bold;">DILIHAT</td>
- </tr>
- <?php $posts=query_posts($query_string . '&orderby=title&order=desc');
- while ( have_posts() ) : the_post(); ?>
- <tr class="myTable">
- <td style="text-align: center;vertical-align: middle;"><?php echo get_post_position_in_reverse(); ?></td>
- <td style="text-align: left;vertical-align: middle;"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></td>
- <td style="text-align: center;vertical-align: middle;"><?php the_tags('', ', ', ''); ?></td>
- <td style="text-align: center;vertical-align: middle;"><?php the_views(); ?></td>
- </tr>
- <?php endwhile; ?>
- </table>
- <div class="entry clearfix"></div>
- <?php wpbeginner_numeric_posts_nav(); ?>
- <?php $theme->hook('content_after'); ?>
- </div><!-- #content -->
- <?php get_sidebars(); ?>
- <?php $theme->hook('main_after'); ?>
- </div><!-- #main -->
- <?php get_footer(); ?>
- ========================
- Bisa dihapus:
- <?php wpbeginner_numeric_posts_nav(); ?>
- <?php echo get_post_position_in_reverse(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement