[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Post truncation problem after upgrade to Wordpress 2.7.1

Posted on 2009-04-01
10
Medium Priority
?
423 Views
Last Modified: 2012-05-06
I recently upgraded our blog to Wordpress 2.7.1 from a previous version of Wordpress. Things went very well. The only problem is that all of the posts displayed on the home page are truncated. If you click on them, you get the full posts, so the posts do exist, but this is not what we want. We want full posts on the home page. Under Settings=>Reading, I selected "Full Text", but it doesn't matter. I have posted the code for the main index page. The blog url is http://www.morterblog.com. Thank you in advance for your help with this troublesome issue!
<?php get_header(); ?>
<script src="../../../../Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script src="../../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
 
 
<div id="content">
<br><br>
 
 
<div id="contentleft">
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	<div class="the_date">
			<div class="date_m"><?php the_time('M') ?></div>
			<div class="date_d"><?php the_time('j') ?></div>
            </div>
            
	<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
			
	<p>
		
    Filed Under <?php the_category(', ') ?>
    
    </p>
	<?php the_content(__('Read more'));?>
	<!--
	<?php trackback_rdf(); ?>
	-->
	
	<a name="comments"></a><h1>Comments</h1>
	<?php comments_template(); // Get wp-comments.php template ?>
	<?php endwhile; else: ?>
 
	<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
	
	<!-- <div align="center" id="paginate"><?// print_pg_navigation() ?></div> -->
	</div>
	
<?php get_sidebar(); ?>
 
<!-- The main column ends  -->
 
<?php get_footer(); ?>

Open in new window

0
Comment
Question by:Don_Pendergraft
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 31

Expert Comment

by:gwkg
ID: 24045952
Try changing
<?php the_content(__('Read more'));?>
to
<?php the_content(); ?>
if that doesn't work try changing
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
to
<?php global $more; if (have_posts()) : while (have_posts()) : the_post(); ?>
and
<?php the_content(); ?>
to
<?php
// Display all content, including text below more
$more = 1;
the_content();
?>

http://codex.wordpress.org/Template_Tags/the_content#Description
 
0
 

Author Comment

by:Don_Pendergraft
ID: 24050679
Thank you for your help. I tried what you suggested, but with no effect. The code for the main index template, as changed, is attached. I hope we can figure this one out! Thanks.

Don

<?php get_header(); ?>
<script src="../../../../Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script src="../../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
 
 
<div id="content">
<br><br>
 
 
<div id="contentleft">
	<?php global $more; if (have_posts()) : while (have_posts()) : the_post(); ?> 
	<div class="the_date">
			<div class="date_m"><?php the_time('M') ?></div>
			<div class="date_d"><?php the_time('j') ?></div>
            </div>
            
	<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
			
	<p>
		
    Filed Under <?php the_category(', ') ?>
    
    </p>
	<?php
// Display all content, including text below more
$more = 1;
the_content();
?>
	<!--
	<?php trackback_rdf(); ?>
	-->
	
	<a name="comments"></a><h1>Comments</h1>
	<?php comments_template(); // Get wp-comments.php template ?>
	<?php endwhile; else: ?>
 
	<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
	
	<!-- <div align="center" id="paginate"><?// print_pg_navigation() ?></div> -->
	</div>
	
<?php get_sidebar(); ?>
 
<!-- The main column ends  -->
 
<?php get_footer(); ?>

Open in new window

0
 
LVL 15

Expert Comment

by:dosth
ID: 24051171
one correction to the coder

<?php global $more;
$more = 1;
the_content(); ?>

try the code and let me know
<?php get_header(); ?>
<script src="../../../../Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script src="../../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
 
 
<div id="content">
<br><br>
 
 
<div id="contentleft">
        <?php global $more; if (have_posts()) : while (have_posts()) : the_post(); ?> 
        <div class="the_date">
                        <div class="date_m"><?php the_time('M') ?></div>
                        <div class="date_d"><?php the_time('j') ?></div>
            </div>
            
        <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
                        
        <p>
                
    Filed Under <?php the_category(', ') ?>
    
    </p>
        <?php
// Display all content, including text below more
php global $more;
$more = 1;
the_content();
?>
        <!--
        <?php trackback_rdf(); ?>
        -->
        
        <a name="comments"></a><h1>Comments</h1>
        <?php comments_template(); // Get wp-comments.php template ?>
        <?php endwhile; else: ?>
 
        <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
        
        <!-- <div align="center" id="paginate"><?// print_pg_navigation() ?></div> -->
        </div>
        
<?php get_sidebar(); ?>
 
<!-- The main column ends  -->
 
<?php get_footer(); ?>

Open in new window

0
Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

 

Author Comment

by:Don_Pendergraft
ID: 24051488
No luck. And now when I click on the summary title, it doesn't even show the post! Man, I regret "upgrading" to 2.7.1. Help!
0
 

Author Comment

by:Don_Pendergraft
ID: 24051561
Put the main index back, but the problem remains. It just shows the titles, no content displayed, even if you click the title, it won't show the content of the post. :(

<?php get_header(); ?>
<script src="../../../../Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script src="../../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
 
 
<div id="content">
<br><br>
 
 
<div id="contentleft">
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	<div class="the_date">
			<div class="date_m"><?php the_time('M') ?></div>
			<div class="date_d"><?php the_time('j') ?></div>
            </div>
            
	<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
			
	<p>
		
    Filed Under <?php the_category(', ') ?>
    
    </p>
	<?php the_content(__('Read more'));?>
	<!--
	<?php trackback_rdf(); ?>
	-->
	
	<a name="comments"></a><h1>Comments</h1>
	<?php comments_template(); // Get wp-comments.php template ?>
	<?php endwhile; else: ?>
 
	<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
	
	<!-- <div align="center" id="paginate"><?// print_pg_navigation() ?></div> -->
	</div>
	
<?php get_sidebar(); ?>
 
<!-- The main column ends  -->
 
<?php get_footer(); ?>

Open in new window

0
 
LVL 15

Accepted Solution

by:
dosth earned 750 total points
ID: 24052159
can you do this, change your theme to default theme and check what is showing their
that will help us to narrowdown
0
 
LVL 26

Assisted Solution

by:souseran
souseran earned 750 total points
ID: 24053326
Don_Pendergraft:

Do you have any plug-ins activated? If so please deactivate all of them and try again. If this works, try reactivating one plug-in at a time until failure. This will also help you determine where the problem is.
0
 

Author Comment

by:Don_Pendergraft
ID: 24076976
Thank you for the suggestions! Actually, I did switch to default theme and deactivated all plugins, but the problem remained. Any other ideas?

Don
0
 

Author Closing Comment

by:Don_Pendergraft
ID: 31565567
The two answers that I split the points between when combined together yield the correct solution. Just switching to the default theme didn't fix the problem. Just deactivating all of the plugins didn't fix the problem. However, when I did both together, I was able to get the site back to how it's supposed to be. Great job on the collaborative effort!
0
 
LVL 15

Expert Comment

by:dosth
ID: 24083996
sounds good you figured it.

thanks for the points too............

thanks
Dosth
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part I (http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_8410-Getting-Started-In-WordPress-Part-I.html), I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
There is a massive demand for content on the web right now, and it doesn't look like it's going to stop any time soon. But, if you are running a business blog, it's not just enough to offer your audience lots of content. It needs to be high-quality…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question