WordPress.org

Ready to get started?Download WordPress

Forums

How to show full posts on front page, not just title - futurosity theme (1 post)

  1. delorean
    Member
    Posted 5 years ago #

    my site-in-progress:

    http://www.thedelorean.net/1980/

    i'm using 'futurosity' - a nice theme available at http://www.futurosity.com/

    is anyone able to show me what i need to do to have full posts displayed on the front page, rather than just a title which serves as a link to the full article?

    any help would be very much appreciated.

    cheers

    SINGLE POST code:

    <?php get_header() ?>

    <div id="container">
    <div id="nav-above" class="navigation">
    <div class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">«</span> %title') ?></div>
    <div class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">»</span>') ?></div>
    </div>

    <div id="content">

    <?php the_post(); ?>

    <div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class(); ?>">
    <h3>Entry</h3>
    <h2 class="entry-title">" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></h2>

    <div class="entry-content">
    <div class="excerpt"><?php the_excerpt(); ?></div>
    <?php the_content(''.__('Read More <span class="meta-nav">»</span>', 'sandbox').''); ?>
    <?php if (function_exists('sharethis_button')) { sharethis_button(); } ?>

    <?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'sandbox') . '&after=</div>') ?>
    </div>
    </div><!-- .post -->

    <div class="entry-meta">
    <h3>Meta</h3>
    <?php printf(__('

    • %1$s
    • <abbr class="published" title="%2$sT%3$s">%4$s</abbr>
    • Category: %6$s
    • %7$s
    • Permalink
    • Comments RSS
    • ', 'sandbox'),
      '<span class="author vcard">ID, $authordata->user_nicename).'" title="' . sprintf(__('View all posts by %s', 'sandbox'), $authordata->display_name) . '">'.get_the_author().'</span>',
      get_the_time('Y-m-d'),
      get_the_time('H:i:sO'),
      the_date('', '', '', false),
      get_the_time(),
      get_the_category_list(', '),
      get_the_tag_list(' '.__('Tags: ').' ', ', ', ''),
      get_permalink(),
      wp_specialchars(get_the_title(), 'double'),
      comments_rss() ) ?>

      <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Comments and trackbacks open ?>
      <?php printf(__('

    • Post a comment
    • Trackback URL
    • ', 'sandbox'), get_trackback_url()) ?>
      <?php elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Only trackbacks open ?>
      <?php printf(__('Comments are closed, but you can leave a trackback: Trackback URL.', 'sandbox'), get_trackback_url()) ?>
      <?php elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) : // Only comments open ?>
      <?php printf(__('Trackbacks are closed, but you can post a comment.', 'sandbox')) ?>
      <?php elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) : // Comments and trackbacks closed ?>
      <?php _e('Both comments and trackbacks are currently closed.') ?>
      <?php endif; ?>

    <?php edit_post_link(__('Edit', 'sandbox'), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>"); ?>

    </div>

    <div id="nav-below" class="navigation">
    <?php if (function_exists('related_posts')) { ?>
    <h3>Related Posts</h3>
    <ul class="related">
    <?php related_posts(null, null, null, null, null, null, null, null, null, null, false); ?>

    <?php } ?>
    <h3>Browse</h3>
    <div class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">«</span> %title') ?></div>
    <div class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">»</span>') ?></div>
    </div>

    <?php comments_template(); ?>

    </div><!-- #content -->
    </div><!-- #container -->

    <?php get_sidebar() ?>
    <?php get_footer() ?>

    PAGE TEMPLATE:

    <?php get_header() ?>

    <div id="container">
    <div id="content">

    <?php the_post() ?>
    <h3>Page</h3>
    <div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class() ?>">
    <h2 class="entry-title">" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></h2>
    <div class="excerpt"><p>This is a page. Whoa.</p></div>

    <div class="entry-content">
    <?php the_content() ?>

    <?php wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'sandbox'), "</div>\n", 'number'); ?>

    <?php edit_post_link(__('Edit', 'sandbox'),'<span class="edit-link">','</span>') ?>

    </div>
    </div><!-- .post -->

    <?php if ( get_post_custom_values('comments') ) comments_template() // Add a key+value of "comments" to enable comments on this page ?>

    </div><!-- #content -->
    </div><!-- #container -->

    <?php get_sidebar() ?>
    <?php get_footer() ?>

Topic Closed

This topic has been closed to new replies.

About this Topic