Forums

[resolved] php calls the_excerpt, but shows the_content (2 posts)

  1. wp_qlite
    Member
    Posted 1 year ago #

    Hi there

    on my website (http://www.led-schermen.be) I have an theme that normally shows different posts when I navigate to my category's. The posts used to show the excerpt, when you click on the read more link you should see the full post.

    now, what happend is I modified the content of a few posts, when I went back to view the modified content, the category shows the whole post.
    I searched but found nothing, I even put back an backup of my theme (that runs on an old server and runs like it should (http://btibe.websites.xs4all.nl) )

    this is the code for my category page.

    can someone help me with that?

    <?php get_header(customheader); ?>
    <body background="images/logo_back.png"><div id="content">
    
    	<?php if (have_posts()) :?>
    		<?php $postCount=0; ?>
    		<?php while (have_posts()) : the_post();?>
    			<?php $postCount++;?>
    	<div class="entry entry-<?php echo $postCount ;?>">
    		<div class="entrytitle">
            <div class="thumb">
    			<a href="<?php the_permalink(); ?>"><?php $screen = get_post_meta($post->ID,'screen', true); ?>
    			<img src="<?php echo ($screen); ?>" width="181" height="100" alt=""  /></a>
                </div>
    			<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    			<h3></h3>
    		</div>
    		<div class="entrybody">
    			 <?php the_excerpt(); ?><span class="read_more"><a href="<?php the_permalink(); ?>"><div class="leesmeer">[ Lees meer &rarr; ]</div></a></span>
    		</div>
    
    		<div class="entrymeta">
    		<div class="postinfo">
    
    		</div>
    
    		</div>
    
    	</div>
    
    	<?php endwhile; ?>
    		<div class="navigation">
    			<?php
    include('wp-pagenavi.php');
    if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    ?>
            </div>
    
    	<?php else : ?>
    
    		<h2>Not Found</h2>
    		<div class="entrybody">Sorry, but you are looking for something that isn't here.</div>
    
    	<?php endif; ?>
    
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    </body>
  2. wp_qlite
    Member
    Posted 1 year ago #

    Found the solution!!

    Yesterday I also installed an plugin WordPressPDF.
    when I disabled the plugin the_excerpts showed up as the should.

Topic Closed

This topic has been closed to new replies.

About this Topic