WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] » not working (3 posts)

  1. paintpops
    Member
    Posted 7 years ago #

    Whenever I try to edit either my header, index, or footer pages in the default theme, the >> symbol (» in HTML) changes to a question mark. How do I fix this?

    This is the code:

    <?php get_header(); ?>

    <div id="content">

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class="head" id="post-<?php the_ID(); ?>">
    <?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> -->
    </div></td></tr><tr><td>

    <div>
    <?php the_content('Read the rest of this entry »'); ?>
    </div>

    <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    </div>

    <?php endwhile; ?>

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
    </div>

    <?php else : ?>

    <h2 class="center">Not Found</h2>
    <p class="center">Sorry, but you are looking for something that isn't here.</p>
    <?php include (TEMPLATEPATH . "/searchform.php"); ?>

    <?php endif; ?>

    </div>

    <?php get_footer(); ?>

    Thank you.

  2. onocrotalus
    Member
    Posted 7 years ago #

    You can't just type the >> character in directly. You need to use the right HTML entity. These always start with &. For example, >> is &raquo; .

    EDIT: Sorry, I re-read your post, you obviously know the above. Are you editing your code in something that would mess with it e.g. Word?

  3. paintpops
    Member
    Posted 7 years ago #

    Ah thanks so much for your help. =) I was using an HTML freeware and I guess it automatically changes the $raquo; to that symbol so it cannot be read. Thank you ^^

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.