Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Blog
- */
- ?>
- <?php
- /**
- * The template for displaying all pages.
- *
- * This is the template that displays all pages by default.
- * Please note that this is the WordPress construct of pages
- * and that other 'pages' on your WordPress site will use a
- * different template.
- *
- * @package Toolbox
- * @since Toolbox 0.1
- */
- get_header(); ?>
- <div id="primary">
- <div id="content" role="main">
- <?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', 'page' ); ?>
- <?php
- if(is_front_page() || is_home()) {
- include (ABSPATH . '/wp-content/plugins/coin-slider-4-wp/coinslider.php');
- }
- ?>
- <ul>
- <?php $myposts = get_posts('numberposts=2&offset='.$paged);
- foreach($myposts as $post) : ?>
- <?php setup_postdata($post);
- unset($categories);
- foreach (get_the_category() as $category)
- $categories[] = $category->cat_name;
- ?>
- <li>
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
- <?php get_the_image('default_size=medium&width=560px&height=200px&image_class=post-thumb'); ?>
- <?php the_excerpt(); ?>
- </li>
- <?php endforeach; ?>
- QUI LINK POST PRECEDENTI / POST SUCCESSIVI
- </ul>
- <?php comments_template( '', true ); ?>
- <?php endwhile; // end of the loop. ?>
- </div><!-- #content -->
- </div><!-- #primary -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement