Adding Posts
-
My code is below… you will see where I want to insert my code.
I’ve attempted to add posts repeatedly to this page. (alt_page.php) Because i simply want one page to house all of the “blogs.”
I thought this would be much easier than it is and maybe I’m missing something really easy. I’m not sure.
<?php /* Template Name: Blog */ ?> <?php get_header(); ?> <div class="content"> <?php get_sidebar(); ?> <div id="content"> <div id="menu_background"> <div id="foxmenucontainer"> <div id="menu"> <ul> <?php wp_list_pages('title_li=&depth=1&sort_column=menu_order&exclude=17,19,21,23,25,'); ?> </ul> </div> </div> </div> <div class="clear"></div> <?php include (TEMPLATEPATH . '/slide.php'); ?> <div id="content_base"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="single" id="post-<?php the_ID(); ?>"> <div id="title"> <h2><?php the_title(); ?></h2></div> <div class="cover"> <div class="sentry"> <?php the_content('Read the rest of this entry »'); ?> <!-- right here is where I want to paste the blogs/posts --> </div> </div> </div> </div> </div> </div> <div class="clear"></div> </div> <div class="clear"></div> <div class="spostinfo"> </div> </div> <?php endwhile; endif; ?> </div> </div> <div class="clear"></div> </div> <div class="clear"></div> <?php get_footer(); ?>
You can see I’m not super confident with php and I’ve read several pages of how to do this but nothing seems to work.
I just want a simply title / little bit of content and then the next “post” to be right below that.
Where the view can click on the title and go another page, which will look just like this one except with the single blog where they can comment on it. I know I will have to create this is… single-post.php? or something of the sorts???
Thanks for any and all help.
- The topic ‘Adding Posts’ is closed to new replies.