WordPress.org

Ready to get started?Download WordPress

Forums

Post shows only the first character (3 posts)

  1. djpmedia
    Member
    Posted 5 years ago #

    Hi everyone,

    I've got an little problem.
    On my website wordpress shows from every post only the first character. I have tried everything to fix this problem but nothings seems to work.
    You can you see what i mean here: http://www.mix105.nl/2009/wp/

    The code that i have used is:

    <!-- START CONTENT -->
    
    <!-- START LUS NieuwsTEMPLATE -->
    		<?php if (have_posts()) : ?>
                      <?php while (have_posts()) : the_post(); ?>
    
                    <table id="post-<?php the_ID(); ?>" width="461" height="238" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                    <td width="259" height="208" id="news_content"><a href="<?php the_permalink() ?>" rel="bookmark" title="Link naar <?php the_title_attribute(); ?>">
                    <h1><?php the_title(); ?></h1></a>  <?php the_content('Lees Verder'); ?> </td>
                    <td width="202" height="208" id="news_pic"><a href="<?php the_permalink() ?>"><img src="<?php $clip = get_post_meta($post->ID, "pic_sq", $single = true); if($clip !== '') { echo $clip; }; ?>"></a></td>
                    </tr>
                    <tr>
                    <td colspan="2" width="461" height="30" id="news_footer">Categorie: <?php the_category(', ') ?> | <?php comments_popup_link('Reageren?', '1 Reactie', '% Reacties'); ?>
                                   </td>
                    </tr>
                </table>
    
                <?php endwhile; ?>
    <!-- END LUS NieuwsTEMPLATE -->
    
    	<?php endif; ?>
    
    	<span id="moreNews"><a href="#">Meer Nieuws</a></span>
      <!-- END CONTENT -->

    I hope someone can help to fix this problem.

    Thanks in advance,

    Dennis de Jong

  2. dmitcha
    Member
    Posted 5 years ago #

    I am having the same problem on one of my sites - the only one to use 2.7, if that is relevant. Here's what I found so far, which does not help me but might apply to your theme:
    ------------------------------
    I also have the problem of the “first character”/”first letter” in this theme; but i solved it.
    The solution is very simple:

    This is the original code of “menu.php”

    ” href=”/”>Home
    ]+)>%U’,’‘, $pages);
    $pages = str_replace(’‘,’‘, $pages);
    echo $pages; ?>

    if you remplase “menu.php” for this code:

    ” href=”/”>Home
    ]+)>%U’,’‘, $pages);
    $pages = str_replace(’‘,’‘, $pages);
    echo $pages;
    unset($pages); ?>

    the bug is solved.

  3. dmitcha
    Member
    Posted 5 years ago #

    The tip from the other site IS the answer, at least for me. I found that code in my header file, added the "unset($pages);" line into the end of the code, and my posts and excerpts now display. Hope that works for you!

    To find the code, I searched all of the files - it was worth the time. Site LOCKED.

Topic Closed

This topic has been closed to new replies.

About this Topic