WordPress.org

Forums

<?php the_category() ?> creates ul? (2 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    I'm creating my "custom" page and used the following part:

    <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() ?> — <?php the_author() ?> @ <?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>
    <!--
    <?php trackback_rdf(); ?>
    -->
    <?php include(ABSPATH . 'wp-comments.php'); ?>
    </div>

    Now the strange thing is that this generates an ul where my category comes. Why does this happen here but not in the (though same) part of the original?

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    ps: if I put something between the (), eg the_category(something) this doesn't happen, and it displays normal.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.