Show Only one Category within Blog Template

Viewing 4 posts - 1 through 4 (of 4 total)
  • #6829
    jonnyrharper
    Participant

    Thanks for the awesome theme. I’m trying to create a blog page that only shows posts from a given category.

    I’ve created a new page template based on the original template-blog.php then in the $args array I’ve added ‘category_name’ => ‘jills-blog’. It correctly displays posts only from the category with the slug “jills-blog” but they are displaying in grid format rather than the standard first 3(or whatever is specified in the theme options) as posts then afterwards the remaining posts in a grid.

    How can I make it work properly so that the first few posts display with full width then the remaining as a grid?

    Many thanks for your help!

    #6913
    Daniel Tara
    Keymaster

    Why not leave the blog as standard and then use the portfolio category?

    #6928
    jonnyrharper
    Participant

    Ha ha perfect thanks…overcomplicating as usual.

    Cheers!

    #7739
    sniper2097
    Participant

    Hi Jonny.

    Sorry to hijacking the thread but I think you’ve done something I am trying to do.

    I have two pages on my blog site – one “BLOG” and the other “NEWS”. Each of these pages use slightly different templates. I’ve also set up BLOG and NEWS categories.

    I’m trying to modify the $args array so that it only picks up one category – the BLOG template only displaying posts in the BLOG category. And likewise with the NEWS category.

    If you could give me any pointers on what git of code I edit and how it’d be appreciated.
    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

Tagged: ,

You must be logged in to reply to this topic.