WordPress.org

Ready to get started?Download WordPress

Forums

Remove "Posted in Uncategorized | No Comments »"? (5 posts)

  1. zappyf1
    Member
    Posted 7 years ago #

    Is there a way I could remove the text below one entry only that says "Posted in Uncategorized | No Comments »"
    I have an entry that is marked as sticky using WP-Sticky that i would not like to have this below it. Any help is greatly appreciated.

  2. zappyf1
    Member
    Posted 7 years ago #

    Just to refine what I said a little, I would like to remove the category and comment information below all sticky entries.

  3. petenawara
    Member
    Posted 6 years ago #

    I'm having the same problem!!! Please help... I'm using my sticky posts as a kind of seperate header..

  4. bloodyawfulpoet
    Member
    Posted 6 years ago #

    This is the fixed that worked for me:

    1) In your site control panel, or however you manage your site, go to where your WordPress themes are stored.

    2) Open up the themes folder of the current theme you are using.

    3) Edit the "page.php" file by removing the following code:

    <div class="meta"><?php _e("Posted in"); ?> <?php the_category(',') ?> by <?php the_author() ?> on the <?php the_time('F jS, Y') ?> <?php edit_post_link(__('Edit This')); ?></div>

  5. Lester Chan
    Member
    Posted 6 years ago #

    I am taking the default theme as an example.

    Open wp-content/themes/default/index.php:
    Replace:
    <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    With:
    <?php if(!is_announcement() || !is_sticky()) { ?>
    <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    `<?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic