rkell
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Show Full Posts on main page?keighl you are a champion – thank you very much for your help on this!
I was worried my lack of knowledge here would have me completely stuffed, but your suggestion has yielded exactly what I wanted.
Cheers!Forum: Fixing WordPress
In reply to: Show Full Posts on main page?keighl – I don’t seem to have a directory called apps. The only directories in my theme folder are images, js and library.
songdogtech – I’m using Modularity lite.
In page.php, single.php and page-wide.php i have the following (already has the_content, and not the_excerpt)page.php:
<?php get_header(); ?> <div class="span-<?php $sidebar_state = get_option('T_sidebar_state'); if($sidebar_state == "On") { echo "15 colborder home"; } else { echo "24 last"; } ?>"> <div class="content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2> <?php include (THEMELIB . '/apps/multimedia.php'); ?> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> <?php endwhile; endif; ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div> </div> <?php $sidebar_state = get_option('T_sidebar_state'); if($sidebar_state == "On") { get_sidebar() ; } else { echo ""; } ?> <!-- Begin Footer --> <?php get_footer(); ?>
single.php:
<?php get_header(); ?> <div class="span-<?php $sidebar_state = get_option('T_sidebar_state'); if($sidebar_state == "On") { echo "15 colborder home"; } else { echo "24 last"; } ?>"> <div class="content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> <?php include (THEMELIB . '/apps/multimedia.php'); ?> <?php the_content(); ?> </div> <div class="clear"></div> <p class="postmetadata alt"> <small> This entry was posted <?php /* This is commented, because it requires a little adjusting sometimes. You'll need to download this plugin, and follow the instructions: https://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */ /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?> on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> and is filed under <?php the_category(', ') ?><?php if (get_the_tags()) the_tags(' and tagged with '); ?>. You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed. <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Both Comments and Pings are open ?> You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site. <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Only Pings are Open ?> Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site. <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Comments are open, Pings are not ?> You can skip to the end and leave a response. Pinging is currently not allowed. <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Neither Comments, nor Pings are open ?> Both comments and pings are currently closed. <?php } edit_post_link('Edit this entry','','.'); ?> </small> </p> <div class="nav prev left"><?php next_post_link('%link', '←', TRUE); ?></div> <div class="nav next right"><?php previous_post_link('%link', '→', TRUE); ?></div> <div class="clear"></div> <?php endwhile; else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> <?php comments_template(); ?> </div> </div> <?php $sidebar_state = get_option('T_sidebar_state'); if($sidebar_state == "On") { get_sidebar() ; } else { echo ""; } ?> <!-- Begin Footer --> <?php get_footer(); ?>
page-wide.php:
<?php /* Template Name: Wide Page */ ?> <?php get_header(); ?> <div class="span-24 first last"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2> <?php include (THEMELIB . '/apps/multimedia.php'); ?> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> <div class="clear"></div> <?php endwhile; endif; ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Show Full Posts on main page?Thanks for the responses so far guys.
I don’t want to sound like a total fool, but the theme files listed are as follows and I can’t find reference to the loop in functions or index…or anywhere else for that matter (am i missing something??);Theme Files
Templates* 404 Template (404.php)
* Archives (archive.php)
* Comments (comments.php)
* Footer (footer.php)
* Header (header.php)
* Image Attachment Template (image.php)
* Main Index Template (index.php)
* Page Template (page.php)
* Search Form (searchform.php)
* Search Results (search.php)
* Sidebar (sidebar.php)
* Single Post (single.php)
* Theme Functions (functions.php)
* Wide Page Page Template (page-wide.php)
* nav.php (nav.php)Styles
* Stylesheet (style.css)
Forum: Fixing WordPress
In reply to: Show Full Posts on main page?songdogtech – thanks for your reply – I hadn’t actually posted any code.
The ‘editor’ I referred to is in fact the theme file editor – I cannot seem to find any reference to where a the_excerpt tag can be changed to the_content.
Come to think of it… there doesn’t even seem to be any evidence at all of post options in ‘the loop’ on my main index template;
<?php get_header(); ?> <!-- Show the welcome box and slideshow only on first page. Makes for better pagination. --> <?php if ( $paged < 1 ) { ?> <!-- Begin Welcome Box --> <?php if (is_home()) include (THEMELIB . '/apps/welcomebox.php'); ?> <!-- Begin Slideshow --> <?php include (THEMELIB . '/apps/slideshow-static.php'); ?> <!-- End Better Pagination --> <?php } ?> <!-- Begin Blog --> <?php include (THEMELIB . '/apps/blog.php'); ?> <!-- Begin Footer --> <?php get_footer(); ?>
Any suggestions??