Thank you Kris, I´m doing something which I haven´t done before and it is making me nervous!
Hi Gareth
Sorry to bother you. I have copied the index.php but I don´t know where to put the copy. Could you let me know please where I should be copying it to?
Thank you
Gareth_Gillman said
The only way to do it is to create a new template (copy the index.php and rename to something else.Now in the page, add the following straight after the first <?php
/* Template Name: Summer Blog */change the loop from:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>to:
<?php $the_query = new WP_Query( 'category_name=summer' ); while ( $the_query->have_posts() ) : ?>Now go down the page and find the following:
<?php endwhile; endif; ?>and change too:
<?php endwhile; wp_reset_query(); wp_reset_postdata(); ?>Now go to the page you created for the summer blog, and change the template to the Summer Blog option (right hand side of page).
Now all being good, it should now only display the content from a category called summer.
Thank you Gareth, I am going to have a go at that later today, I shall report back!
