Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1311

    I got a couple questions…

    I really love this template and the way it is set up. However, is there any way I can make a blog page and have it look the same as the home page?

    Is there any way to limit the number of blog posts it shows per page?

    Also how do I prevent the slide image posts from showing up in the blog posts?

    #34824

    1) Yes, go to Settings > Reading > and at “Blog pages show at most” type in the number of posts you would like to show.

    2) You can change the code of archive.php so that it displays the blog entries like index.php. Just compare both files and copy over the right code.

    3) If you copy over the code from index.php to archive.php you’ll find following line there:

    $query_string = "cat=".$negative_cats."&paged=$paged";

    Replace .$negative_cats. with the category ids you want to exclude – they want show up on your archive blog page than. If you want to exclude categories from the mainpage you can do this via admin panel under Habitat Options > Mainpage Options.

    The Dude

    #34825

    Alright but how do I set the Blog page as the archive page?

    #34826

    I had a second look at it and the best solution would be if you create a new template, let’s say template_blog. Don’t modify archive.php but copy everything from index.php in your template_blog and exclude the categorioes you want. Then create a new page and select template_blog as your page template. By using this methode you can create as many blogs as you like – you can also exclude categories for every blog.

    The Dude

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

The topic ‘Blog posts/layout and slider question…’ is closed to new replies.