Really at a loss as to what the problem could be… I’m sure I’m doing everything right. Maybe it’s a problem with the theme or a plug in or something? I’m using the Cyberchimps theme.
Or could it be possible my code is just messed up somewhere?
When I do this the static content shows up but underneath that it’s just blank, no blog.
Did you try to go to posts and add a new post? It will have content only after posting something because you used were to use a blank page.
Erm.. not really sure what you mean. I tried adding a new post after setting up the static page to see if that would show up in the new blog but nope..
I can only think I must have messed up the code of a file I wasn’t meant to somewhere or something?
[ http://codex.ww.wp.xz.cn/Forum_Welcome#No_Bumping ]
When I do this the static content shows up but underneath that it’s just blank, no blog.
if you are referring to the static front page, this is normal.
to get a ‘blog’ to show below the static content, you will need to create a page tempalte for that page.
if you are referring to the posts page, then this should show the posts;
if it does not, please post more information like the name and download link of your theme, and a link to your site.
Ahh right I see. I misunderstood how it is meant to work.
So how do I create a page template so I can have the blog showing below the static content?
Thanks for you help and patience!
http://codex.ww.wp.xz.cn/Pages#Creating_Your_Own_Page_Templates
start with a copy of page.php;
then, after the end of the default loop ( http://codex.ww.wp.xz.cn/The_Loop ), add a secondary query, using WP_Query() http://codex.ww.wp.xz.cn/Class_Reference/WP_Query
basic example:
<?php $blog = new WP_Query( array( 'posts_per_page' => 10 ) );
if( $blog->have_posts() ) : while( $blog->have_posts() ) ; $blog->the_post();
//whatever you want to output//
endwhile;
else : echo 'no posts';
endif;
wp_reset_postdata(); ?>
Great, thanks. Only trouble is, I’m not sure what the end/default loop is in this? (Sorry for being so rubbish!)
get_header(); ?>
<?php do_action( 'cyberchimps_before_container'); ?>
<?php do_action( 'cyberchimps_page_content' ); ?>
<?php do_action( 'cyberchimps_after_container'); ?>
<?php get_footer();
function cyberchimps_page_display(){
}
?>