• Hi all,

    Any ideas on how I can have the full post display on the front page and not just a preview?

    I’ve embedded a flash music player in my post but it doesn’t display on the front page, the code gets stripped off it. any ideas on how to stop it?

    I am using neutica theme.
    this is the blog http://www.technopodcast.com/blog/
    posts should display in full like this (but I want the front page to also include the full posts) http://www.technopodcast.com/blog/?p=3

    any ideas please?

Viewing 13 replies - 1 through 13 (of 13 total)
  • What does the index.php code look like inside the loop?

    Try replacing <?php the_excerpt(); ?> with <?php the_content(); ?>

    I’m having the same issue. It looks like the post entries aren’t even populated by the index.php…or it is in there somewhere in some strange location. There doesn’t exist any “excerpt” or anything. A little help would be appreciated:

    <?php get_header() ?>
    
    	<div id="container">
    
    		<div id="content">
    
    <?php while ( have_posts() ) : the_post() ?>
    			<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
    				<div class="entry-content">
    					<p class="thePic clearfix">
    						<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_image('thumbnail'); ?></a>
    					</p>
    					<p>
    						<?php the_content_rss('', TRUE, '', 40); ?><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark">Read More</a>
    					</p>
    				</div><!-- .entry-content -->
    
    				<div class="entry-meta clearfix">
    					<h2 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></h2>
    					<ul class="meta-list">
    						<li><span class="author vcard"><?php printf(__('Written by %s', 'sandbox'), '<a class="url fn n" href="'.get_author_link(false, $authordata->ID, $authordata->user_nicename).'" title="' . sprintf(__('View all posts by %s', 'sandbox'), $authordata->display_name) . '">'.get_the_author().'</a>') ?></span></li>
    						<li><span class="entry-date">Posted on <abbr class="published green" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s', 'sandbox'), the_date('', '', '', false), get_the_time()) ?>.</abbr></span></li>
    						<li><span class="cat-links"><?php printf(__('Filed under %s', 'sandbox'), get_the_category_list(', ')) ?>.</span></li>
    <?php the_tags(__('<li><span class="tag-links">Tagged as ', 'sandbox'), ", ", ".</span></li>") ?>
    						<li><span class="comments-link">Read <?php comments_popup_link(__('Comments (Be the first!)', 'sandbox'), __('Comments (1)', 'sandbox'), __('Comments (%)', 'sandbox')) ?>.</span></li>
    <?php edit_post_link(__('Edit.', 'sandbox'), "\t\t\t\t\t<li class=\"edit-link\">", "</li>"); ?>
    					</ul>
    				</div>
    			</div><!-- .post -->
    
    <?php comments_template() ?>
    <?php endwhile ?>
    
    			<div id="nav-below" class="navigation">
    				<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&laquo;Older posts</span>', 'sandbox')) ?></div>
    				<div class="nav-next"><?php previous_posts_link(__('<span class="meta-nav">Newer posts&raquo;</span>', 'sandbox')) ?></div>
    			</div>
    
    		</div><!-- #content -->
    	</div><!-- #container -->
    
    <?php get_sidebar() ?>
    <?php get_footer() ?>

    It sounds like the code in your themes is displaying the excerpt and not the full content of the post. As Downstairsdev suggested you need to make sure that the theme template file that is being called (probably index.php for a front page) contains the WordPress loop which calls the full content of posts. Here is an example:

    if(have_posts()) :
    while(have_posts()) : the_post(); //loop opened ?>

    <?php the_content(); ?>

    <? endwhile; //loop closed ?>
    <? endif; //have_posts closed ?>

    What would I replace with the code you provided? Where should I insert that snippet of code?

    @stevenocheltree

    change

    the_content_rss

    with

    the_content

    hopefully, i get this right

    @uwiuw, tried that…doesn’t work either. =0(

    It was one of my first attempts to make things work.

    Thanks for the suggestion though.

    It appears the problem lies somewhere here:

    div id="container">
    		<div id="content">
    <?php while ( have_posts() ) : the_post() ?>
    			<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
    				<div class="entry-content">
    					<p class="thePic clearfix">
    						<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_image('thumbnail'); ?></a>
    					</p>
    					<p>
    						<?php the_content_rss('', TRUE, '', 40); ?><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark">Read More</a>
    					</p>
    				</div><!-- .entry-content -->

    I’ve tried replacing the:
    <?php the_content_rss('', TRUE, '', 40); ?>
    with things like
    <?php the_content_rss('', TRUE, '', 10000); ?> in all the index.php, search.php, archives.php, categories.php, etc. Supposedly the “40” determines the amount of words shown.

    I’ve also tried things like:
    <?php the_content(); ?>
    and
    <?php get_the_content(); ?>

    I’m not even sure if the index.php controls this page. I’ve added random text like “WTFLFJSDLJDL:FKJLFSD:LJDFLJL:FD” inside the first <div> tag and nothing changes. Gaaaaaaaaaaaaah, this is bothering me that I can’t figure this out.

    Any help would be great, here is the link to the theme’s homepage:
    http://allancole.com/wordpress/themes/neutica/

    i have download it. it’s great theme. i love it.

    btw, do you edit index.php or home.php ? according to wordpress hierarchy, home.php will execute first then index.php.

    so, check the home.php. it should work if my intuition is right.

    I’ve tried it in both….with no luck using either the index or the home.php…neither seems to do anything when I edit it.

    in home.php, i have change

    <?php the_content_rss(”, TRUE, ”, 40); ?>

    into

    <?php the_content(); ?>

    and it’s work fine. strange.

    So weird. I had been editing in Dreamweaver using ThemeDreamer, I would then upload the edited .php files to my wp-content/themes/neutica folder on my FTP which hosts my blog…and for some reason, something would overwrite the file because nothing would change if I look in it in the theme editor in the WP control panel.

    I just changed that snippet in the WP control panel and it worked great. I wonder why it wasn’t working before, editing it outside and uploading it. Strange. It worked fine for other pages but the home.php would always revert to the original after it was uploaded.

    Thanks for the help. I guess I’ll start editing from the WP control panel a bit more often now. I should have been checking it in the WP Control Panel to make sure the new code was appearing.

    Hi there,

    I got it to work by changing

    <?php the_content_rss('', TRUE, '', 40); ?>

    into

    <?php the_content(); ?>

    Now, I’m wondering how to remove the “Read More” link… ideas?

    awesome! that worked for me. i removed the read more link by removing the <a href link following the content tag… it should be right after php the content. also you can remove the thumbnail tag

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘how to get full posts on the front page not previews (neutica theme)’ is closed to new replies.