I got a little ways down the line using the wordpress tutorials, but I’ve only found code that will allow me to display a link the a post or an excerpt from the post on my home page. What i want to do is display the posts in their entirety… how do I do that? Here’s the code I used to display links:
<?php
require('blog/wp-blog-header.php');
?>
<?php query_posts('showposts=10'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br />
<?php endwhile;?>
and to disply excerpts:
<?php
require('blog/wp-blog-header.php');
?>
<?php query_posts('showposts='); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br />
<?php endwhile;?>
Okay, I’m getting there…
I put the following into my index.php file:
<?php if ( have_posts() ) : ?>
<?php twentyeleven_content_nav( 'nav-above' ); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php twentyeleven_content_nav( 'nav-below' ); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
But if you navigate to the site you’ll find that the title of the post is freaking huge! And kind of messed up. can I do something about this?
I managed to fix the ugly… I’m starting to move in towards what I want. I now have three questions:
1) How can I unlink the titles and other stuff so that people will not be able to view the blog directly
2) How can I set up comments so that they can be done from my homepage?
3) How do i put a subscribe link on my homepage?