Quantcast
Channel: Site5 Free Premium WordPress Themes » All Posts
Viewing all articles
Browse latest Browse all 8865

Reply To: Display specific category on blog template page clone

$
0
0

Hi guys,

thanks but I found what I wanted to by adding the following in my code

`<?php
// WP 3.0 PAGED BUG FIX
if ( get_query_var(‘paged’) )
$paged = get_query_var(‘paged’);
elseif ( get_query_var(‘page’) )
$paged = get_query_var(‘page’);
else
$paged = 1;

$args = array(
‘post_type’ => ‘post’,
‘cat’ => 5,
‘paged’ => $paged );
query_posts($args);
?>`

The line ‘cat’ => 5, is what I’ve added here.
“5″ is the value of the category I want to display.

Guido, display a category in the menu was not exactly what I’ve asked for ;)

Thank you anyway
Ben

  • This reply was modified 11 hours, 43 minutes ago by  bennyto.
  • This reply was modified 11 hours, 42 minutes ago by  bennyto.

Viewing all articles
Browse latest Browse all 8865

Trending Articles