• Resolved wej00

    (@wej00)


    An “” is appearing before each double space I have in a post. The page it appears on is a nonblog page calling blog content:

    <?php query_posts('posts_per_page=5'); ?>
     <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    <div id="maincont">
    	<h2><a id="posttitle" href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a> </h2>
    
    	<p id="postinfo"><?php the_time() ?> <?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?> in <?php the_category(', '); ?></p>
    
     	<div class="entry">
    		<?php the_content(); ?>
    	</div>
    
    	<p id="small" align="right"><a href="<?php comments_link(); ?>"><?php comments_number('No Comments','1 Comment','% Comments'); ?></a></p>
    
    </div>
    
     <?php endwhile; else: ?>
     <div id="maincont">
     	<p>Blablabla</p>
     </div>
     <?php endif; ?>

    The double space is still showing up, but the “” thing is showing up before it. How do I stop that from showing up? It is not showing up on the actual blog portion of the site. Sorry if it is a simple question, but don’t really know where to look for the answer.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Wej00,

    If this character is showing within the post you might double check the post itself.

    • Try copying the content into a plain text editor and copy it back into the post.
    • Check the HTML tab and look for any oddities where the character is showing as well
    Thread Starter wej00

    (@wej00)

    Like I said, It isn’t showing up on the actual blog, just the page that is calling it that is in a nonblog area.

    Thread Starter wej00

    (@wej00)

    So I looked around the forum, and found other people having the problem awhile back. The solution I found was to comment out 2 lines in the wp-config.php

    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);

    Comment them out like this:
    //define(‘DB_CHARSET’, ‘utf8’);
    //define(‘DB_COLLATE’, ”);

    BUT IT DIDN’T really work. It fixed the problem on the nonblog page, but then printed out diamonds with a question mark in them on the actual blog in the same place the  appeared. Why do the blog pages and the nonblog pages look different? What do I need to do to make both pages not have a mental problem????

    Thread Starter wej00

    (@wej00)

    Learning experience. It took me a long time, but I then read something on setting the character sets and found out that you had to do that. It is funny though, the older browser firefox 2.x displayed it correctly, but the newer version of firefox and ie didn’t. I just added:

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    To the head of the page calling blog content and it fixed the problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘An “” appearing before each double space.’ is closed to new replies.