This is the page I am trying to create...
<?php
/* Template Name: Blog Page */
get_header(); ?>
<div class="home">
<div class="big-post-head">
<?php
$args = array(
'posts_per_page' => -1,
'orderby' => 'date',
'order' => 'DESC',
'category_name' => 'Cars'
);
$loop = new WP_Query( $args );
?>
<?php while ( $loop->have_posts() ) : $loop->the_post();?>
<?php the_post_thumbnail(); ?>
<?php the_title(); ?>
<?php the_excerpt(); ?>
<?php endwhile; ?>
</div>
<div class="small-posts-head">
<?php
$args = array(
'posts_per_page' => -5,
'orderby' => 'date',
'order' => 'DESC',
'category_name' => 'Cars'
'offset' => '1'
);
$loop = new WP_Query( $args );
?>
<?php while ( $loop->have_posts() ) : $loop->the_post();?>
<?php the_post_thumbnail(); ?>
<?php the_title(); ?>
<?php the_excerpt(); ?>
<?php endwhile; ?>
</div>
<?php get_footer(); ?>
This is the first time I am trying to do this with args or some php coding, so probably I made some obvious mistakes. I followed Wordpress tutorials, and read some psot from ehre, but still I am unable to sort it out.
What I want to do is to have...
Top page
One Big Posts, latest on Blog.
Last 4 posts skipping first one.
Mid page
One big post, latest from category.
Last 4 posts skipping first one from this category.
Low Page