Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #379


    Can you please help me in removing the entry-head information from posts only under certain categories?

    <div class=”entry-head”>

    <span class=”date ie6fix”><?php the_time(‘M d, Y’) ?></span>

    <span class=”comments ie6fix”><?php comments_popup_link(__(‘No Comments’,’newscast’), __(‘1 Comment’,’newscast’), __(‘% Comments’,’newscast’)); ?></span>

    <span class=”author ie6fix”><?php _e(‘by’,’newscast’);?> <?php the_author_posts_link(); ?></span>


    Thank you.



    You can use Conditional Tags to do this, for example:

    <?php if(is_page()) { ?>


    <?php } ?>

    if you only wanted the code to appear on pages? Wrap this code around the HTML / PHP you pasted above.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Removing entry-head from posts’ is closed to new replies.