[resolved] » not working (3 posts)

  1. paintpops
    Posted 9 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() ?> -->

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

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

    <?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>

    <?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; ?>


    <?php get_footer(); ?>

    Thank you.

  2. onocrotalus
    Posted 9 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
    Posted 9 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


No tags yet.