Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Blog
  4. */
  5. ?>
  6. <?php
  7. /**
  8. * The template for displaying all pages.
  9. *
  10. * This is the template that displays all pages by default.
  11. * Please note that this is the WordPress construct of pages
  12. * and that other 'pages' on your WordPress site will use a
  13. * different template.
  14. *
  15. * @package Toolbox
  16. * @since Toolbox 0.1
  17. */
  18.  
  19. get_header(); ?>
  20.  
  21. <div id="primary">
  22. <div id="content" role="main">
  23. <?php while ( have_posts() ) : the_post(); ?>
  24. <?php get_template_part( 'content', 'page' ); ?>
  25. <?php
  26. if(is_front_page() || is_home()) {
  27. include (ABSPATH . '/wp-content/plugins/coin-slider-4-wp/coinslider.php');
  28. }
  29. ?>
  30.  
  31. <ul>
  32. <?php $myposts = get_posts('numberposts=2&offset='.$paged);
  33. foreach($myposts as $post) : ?>
  34. <?php setup_postdata($post);
  35. unset($categories);
  36.  
  37. foreach (get_the_category() as $category)
  38. $categories[] = $category->cat_name;
  39. ?>
  40. <li>
  41. <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
  42. <?php get_the_image('default_size=medium&width=560px&height=200px&image_class=post-thumb'); ?>
  43. <?php the_excerpt(); ?>
  44. </li>
  45. <?php endforeach; ?>
  46. QUI LINK POST PRECEDENTI / POST SUCCESSIVI
  47. </ul>
  48. <?php comments_template( '', true ); ?>
  49.  
  50. <?php endwhile; // end of the loop. ?>
  51.  
  52. </div><!-- #content -->
  53. </div><!-- #primary -->
  54.  
  55. <?php get_sidebar(); ?>
  56. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement