• My site is having a problem adding a space between a post’s category and the ‘written by’ intro. It displays fine in Firefox, but in IE the display looks like this:

    Filed under Categoryby Author.

    How can I get IE to recognize that space?

    Site is http://speakspeak.org

    PHP code is as follows:

    —-

    <div class=”post”>
    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h3>
    <div class=”meta”><?php _e(“Filed under”); ?> <?php the_category() ?> by <?php the_author() ?> — <?php the_time(‘m/d/Y’); ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>

    <div class=”storycontent”>
    <?php the_content(); ?>
    </div>

    <div class=”feedback”>
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
    </div>

    —-

    Thanks for the help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • <?php _e(“Filed under”); ?> <?php the_category(); ?> by

    Note the ; I just added at the end. Is that actually in your template ?

    Thread Starter amanda1973

    (@amanda1973)

    It is not.

    You rock.

    (And in my defense, I’m not a programmer. Just pinch-hitting until I find one.)

    Thanks ever so much, podz.

    Thread Starter amanda1973

    (@amanda1973)

    Oops.

    Just added the semicolon and uploaded. The space still isn’t showing up.

    New code:

    <div class=”post”>
    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h3>
    <div class=”meta”><?php _e(“Filed under”); ?> <?php the_category(); ?> by <?php the_author(); ?> — <?php the_time(‘m/d/Y’); ?> @ <?php the_time(); ?> <?php edit_post_link(); ?></div>

    <div class=”storycontent”>
    <?php the_content(); ?>
    </div>

    <div class=”feedback”>
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
    </div>

    use  by

    He I see it is not showing the code well so maybe when I send it like this with spaces use & n b s p ; by

    Thread Starter amanda1973

    (@amanda1973)

    The non-breaking space worked. Thanks, dolmarit.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘IE bug — no space between category and author’ is closed to new replies.