twangnation
Forum Replies Created
-
Forum: Themes and Templates
In reply to: changing an the_excerpt to a regular postsongdogtech, did as you recommended and no change resulted. Here’s what I have now:
<!– post begin –>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”home-post” id=”post-<?php the_ID(); ?>”>
<div class=”upper”>
<div class=”fade”></div>
<h3>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h3>
<span class=”meta”><?php the_time(‘F’) ?> <?php the_time(‘jS’) ?> <?php the_time(‘Y’) ?></span>
<?php the_content();?>
</div><span class=”lower-meta”><?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></span>
</div>Forum: Themes and Templates
In reply to: changing an the_excerpt to a regular postOkay, I’ve determined the the_excerpt code in the functions.php is not affecting the current post. So I changed the the_excerpt in the index.php to:
<?php the_content( $more_link_text, $strip_teaser, $more_file ); ?>
But the current post is still showing up as a the_excerpt style post (55 characters, no pics, no HTML code)
Here is the whole index.php. Please take a look and let me know how to make my current post a regular one. Thanks.
———————————————————————
<?php get_header(); ?>
<div id=”container”>
<ul id=”nav”>
<li class=”<? echo (is_home())?’current_page_item’:”; ?>”>/”>Home
<?php $pages = wp_list_pages(‘sort_column=menu_order&depth=1&title_li=&echo=0’);
echo $pages; ?><? unset($pages); ?>
<br clear=”all” />
<div id=”search”><form method=”get” id=”searchform” action=”<?php bloginfo(‘url’); ?>/”>
<input type=”submit” id=”searchsubmit” class=”btnSearch” value=” ” />
<input type=”text” value=”<?php the_search_query(); ?>” name=”s” id=”s” class=”txtField” />
</form></div>
<div id=”site-name”>/”><?php bloginfo(‘name’); ?>
<span class=”description”><?php bloginfo(‘description’); ?></span></div>
<div class=”spacer”></div>
<div id=”recent-posts”>
<!– post begin –>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”home-post” id=”post-<?php the_ID(); ?>”>
<div class=”upper”>
<div class=”fade”></div>
<h3>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h3>
<span class=”meta”><?php the_time(‘F’) ?> <?php the_time(‘jS’) ?> <?php the_time(‘Y’) ?></span>
<?php the_content( $more_link_text, $strip_teaser, $more_file ); ?>
</div>
<span class=”btn-readon”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>Read On</span>
<span class=”lower-meta”><?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></span>
</div>
<?php endwhile; ?>
<br clear=”all” />
<?php else: ?>
<div class=”search-results”><span class=”bigger”>Search Results…</span>
<?php _e(‘Sorry, no posts matched your criteria.’); ?></div>
<?php endif; ?>
<!– post end –>
<div id=”page-nav”><span class=”older”><?php next_posts_link(‘Older Entries’) ?></span><span class=”newer”><?php previous_posts_link(‘Newer Entries’) ?></span></div>
<br clear=”all” />
</div>
</div>
<div class=”lower-outer”>
<div id=”lower”>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>Forum: Themes and Templates
In reply to: changing an the_excerpt to a regular postThanks for the help songdogtech.
I’ve posted at the authors page but nothing yet.
Forum: Themes and Templates
In reply to: changing an the_excerpt to a regular postOkay, tried just what you suggested and there’s no change.
Forum: Themes and Templates
In reply to: changing an the_excerpt to a regular postI changed the_excerpt in the index to:
<?php the_content( $more_link_text, $strip_teaser, $more_file ); ?>
But it has no effect. This is in the feature.php file:
/* previous, next posts */
function tl_excerpt($text, $excerpt_length = 80) {
$text = str_replace(‘]]>’, ‘]]>’, $text);
$text = strip_tags($text);
$words = explode(‘ ‘, $text, $excerpt_length + 1);
if (count($words) > $excerpt_length) {
array_pop($words);
array_push($words, ‘[…]’);
$text = implode(‘ ‘, $words);
}return apply_filters(‘the_excerpt’, $text);
}function tl_post_excerpt($post) {
$excerpt = ($post->post_excerpt == ”) ? (tl_excerpt($post->post_content))
: (apply_filters(‘the_excerpt’, $post->post_excerpt));
return $excerpt;
}function previous_post_excerpt($in_same_cat = false, $excluded_categories = ”) {
if ( is_attachment() )
$post = &get_post($GLOBALS[‘post’]->post_parent);
else
$post = get_previous_post($in_same_cat, $excluded_categories);if ( !$post )
return;
$post = &get_post($post->ID);
echo tl_post_excerpt($post);
}function next_post_excerpt($in_same_cat = false, $excluded_categories = ”) {
$post = get_next_post($in_same_cat, $excluded_categories);if ( !$post )
return;
$post = &get_post($post->ID);
echo tl_post_excerpt($post);
}–and I’m wondering if this is having an overriding effect?
Forum: Themes and Templates
In reply to: changing an the_excerpt to a regular postsongdogtech. thanks for the quick response.
I changed:
<?php the_excerpt(‘Read the rest of this entry »’); ?>
to
<?php the_content(‘Read the rest of this entry »’); ?>
But no change has resulted.
Forum: Themes and Templates
In reply to: Increase character length in main post?anyone?