Skip to:

Re: adding content to the 1.2 default theme homepage

@MrMaz: BuddyPress does use home.php if it exists in your child theme. It just can’t seem to use BOTH index.php (for /blog/) and home.php (for /). It used to be able to use both.

@Mike: Thanks. All that does however is create a link to /blog/. What I needed was for /blog/ to use index.php.

In the meantime I’ve actually solved this quite simply. Forget all the homepage settings stuff. All I did was create a page called “Blog” and assigned a custom template to that page. In that template, instead of using the normal index.php loop… i.e.:

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

which would return posts based on the slug (so it only returns the page that you’re on if you’re on a regular “Page”)… I used this (to return all posts in the DB):

<?php $postslist = get_posts('order=DESC');
foreach ($postslist as $post) :
setup_postdata($post); ?>

<!-- Posts Loop Here -->

<?php endforeach; ?>

Skip to toolbar