• Resolved LeedsInk

    (@leedsink)


    Hi, already been here once, thought it would be the same for my next issue, but it’s not and the code seems different to what’s in the Codex help files. Found a similar one, but changing anything just basically displays a link to my blog, which is just an endless loop.

    I have a blog template with the following code:

    //custom_blog_posts(array('post_type' => 'post'));
       global $wp_query;
       wp_reset_query();
        $paged = get_query_var('paged') ? get_query_var('paged') : 1;
    	$wp_query = new WP_Query(array('post_type' => 'post','paged'=> $paged));

    This shows ALL blog posts, I would like it to only show the posts from a certain category. (cat=8) However I can’t see what I’m supposed to change here.

    Any help on this issue would help me a lot. ??

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blog Posts by Category (again)’ is closed to new replies.