Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 96024

Moritz83 on "Archive for each category"

$
0
0

Hey guys,

before I left home for a 2 month trip across the USA I created a "LIVE" page where I post stuff during this time. Unfortunately I forgot to look for an archive solution. I've done the following to separate the posts

index.php

<?php if (is_front_page() && !is_paged() )
     $posts = query_posts($query_string . '&cat=-5'); ?>

page_live.php (child theme template)

<?php query_posts( 'cat=5' ); ?>

It's separating the posts but when I click on older posts it will merge both categories to one archive. Is there a quick fix to generate an archive for category "1" and for category "5"? I have only my netbook with me so I'm a bit limited in coding :/

Here is the link: Link

Thanks in advance
Moritz


Viewing all articles
Browse latest Browse all 96024

Trending Articles