Advertisement
Guest User

Wordpress post

a guest
Sep 12th, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. <?php
  2. get_header();
  3. global $options;
  4. foreach ($options as $value) {
  5. if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
  6. }
  7. ?>
  8.  
  9. <?php query_posts('paged='.$paged.'&cat='.$theme_home_cats); if (have_posts()) : while (have_posts()) : the_post(); ?>
  10.  
  11. <div class="post">
  12.  
  13. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  14.  
  15. <div class="meta">
  16. Escrito el <?php if (function_exists('time_since')) {
  17. echo time_since(abs(strtotime($post->post_date_gmt . " GMT")), time()) . " ago";
  18. } else {
  19. the_time('d M Y');
  20. } ?> en <?php the_category(', '); ?> <?php edit_post_link('(Edit Post)'); ?>
  21. </div>
  22.  
  23. <div class="clear"></div>
  24.  
  25. <?php if((get_post_meta($post->ID, 'ghostpool_thumbnail', true) OR has_post_thumbnail()) && ($theme_thumbnails == "0")) { ?>
  26.  
  27. <div class="image-preview">
  28. <a href="<?php the_permalink(); ?>"><?php if(get_post_meta($post->ID, 'ghostpool_thumbnail', true)) { ?><img src="<?php echo(get_post_meta($post->ID, 'ghostpool_thumbnail', true)); ?>" class="wp-post-image" alt="" /><?php } else { ?><?php the_post_thumbnail(('thumbnail'), array('title' => '')); ?><?php } ?></a>
  29. </div>
  30.  
  31. <?php } ?>
  32.  
  33. <div class="post-excerpt">
  34.  
  35. <?php if($theme_homepage_text_display == "1") { ?>
  36. <?php the_content(); ?>
  37. <?php } else {?>
  38. <p><?php echo excerpt(120); ?></p>
  39. <?php } ?>
  40.  
  41. </div><!--End post excerpt-->
  42.  
  43. </div><!--End post-->
  44.  
  45. <?php endwhile; ?>
  46.  
  47. <?php wp_pagenavi(); ?>
  48.  
  49. <?php else : ?>
  50.  
  51. <div class="post">
  52. <h3>Page Not Found</h3>
  53. </div>
  54.  
  55. <?php endif; wp_reset_query(); ?>
  56.  
  57. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement