Support » Plugins and Hacks » Remove “Posted in Uncategorized | No Comments »”?

  • 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Just to refine what I said a little, I would like to remove the category and comment information below all sticky entries.

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

    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>

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove “Posted in Uncategorized | No Comments »”?’ is closed to new replies.