WordPress.org

Ready to get started?Download WordPress

Forums

IE bug -- no space between category and author (7 posts)

  1. amanda1973
    Member
    Posted 9 years ago #

    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!

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    <?php _e("Filed under"); ?> <?php the_category(); ?> by

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

  3. amanda1973
    Member
    Posted 9 years ago #

    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.

  4. amanda1973
    Member
    Posted 9 years ago #

    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>

  5. dolmarit
    Member
    Posted 9 years ago #

    use  by

  6. dolmarit
    Member
    Posted 9 years ago #

    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

  7. amanda1973
    Member
    Posted 9 years ago #

    The non-breaking space worked. Thanks, dolmarit.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags