Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Produk Page
- */
- get_header(); ?>
- <div id="content-wrap">
- <div id="content">
- <div class="gap">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <h2><?php the_title(); ?> <?php edit_post_link('edit', '[', ']'); ?>
- </h2>
- <?php endwhile; endif; ?>
- <?php rewind_posts(); ?>
- <?php
- // retrieve one post with an ID of 5
- query_posts('cat=-1,-4,-32,-48,-49');
- global $more;
- // set $more to 0 in order to only get the first part of the post
- $more = 0;
- // the Loop
- while (have_posts()) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class() ?>>
- <div class="headarea">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <div class="metaku">
- <?php the_category(' • '); ?> <?php edit_post_link('e', '[', ']'); ?>
- </div>
- </div>
- <div class="gambare">
- <?php
- if(function_exists('get_the_link')):
- $nonono = get_bloginfo('template_directory') . '/images/no-thumb.jpg';
- ?>
- <a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>"><img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_the_link(array('Thumbnail','My Thumbnail'),'medium',$nonono); ?>&h=170&w=175&zc=1&q=90" alt="<?php the_title(); ?>" /></a>
- <?php endif; ?>
- </div>
- <div class="entry">
- <div class="pesan"><a href="<?php the_permalink() ?>#pesan"><img src="<?php bloginfo('template_directory'); ?>/images/get.gif" alt="Beli" /></a></div>
- <?php the_content('Read the rest of this entry »'); ?>
- </div>
- <br class="clear" />
- </div>
- <?php
- endwhile;
- ?>
- <div class="navigation">
- <div class="alignleft"><strong><?php next_posts_link('« Older Entries') ?></strong></div>
- <div class="alignright"><strong><?php previous_posts_link('Newer Entries »') ?></strong></div>
- </div>
- <p> </p>
- <p> </p>
- </div>
- </div>
- </div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement