Viewing 8 replies - 1 through 8 (of 8 total)
  • what page?
    what theme?
    what site?

    Thread Starter tradtips

    (@tradtips)

    in every category showing date,admin, i want to hide this

    Thread Starter tradtips

    (@tradtips)

    every category post displaying date,admin

    in archive.php, find this line:

    <div class="postdate"><img src="<?php bloginfo('template_url'); ?>/images/date.png" /> <?php the_time('F jS, Y') ?> <img src="<?php bloginfo('template_url'); ?>/images/user.png" /> <?php the_author() ?> <?php if (current_user_can('edit_post', $post->ID)) { ?> <img src="<?php bloginfo('template_url'); ?>/images/edit.png" /> <?php edit_post_link('Edit', '', ''); } ?></div>

    remove exactly this section:

    <img src="<?php bloginfo('template_url'); ?>/images/date.png" /> <?php the_time('F jS, Y') ?> <img src="<?php bloginfo('template_url'); ?>/images/user.png" /> <?php the_author() ?>

    Thread Starter tradtips

    (@tradtips)

    Done.

    Thanks you very much.

    vijender

    Thread Starter tradtips

    (@tradtips)

    hi,

    Still not resolve,I have deleted above code from the theme but still showing date and Admin on every post.

    Thanks.

    you asked for:

    every category post displaying date,admin

    any date and admin showing in the archive pages?

    the date and admin might still show in other places such as the front page or single posts;

    for the front page posts, edit index.php;
    for single posts, edit single.php;

    in both templates, find:

    <div class="postdate"><img src="<?php bloginfo('template_url'); ?>/images/date.png" /> <?php the_time('F jS, Y') ?> <img src="<?php bloginfo('template_url'); ?>/images/user.png" /> <?php the_author() ?> <?php if (current_user_can('edit_post', $post->ID)) { ?> <img src="<?php bloginfo('template_url'); ?>/images/edit.png" /> <?php edit_post_link('Edit', '', ''); } ?></div>

    delete exactly this section from the above:
    <img src="<?php bloginfo('template_url'); ?>/images/date.png" /> <?php the_time('F jS, Y') ?> <img src="<?php bloginfo('template_url'); ?>/images/user.png" /> <?php the_author() ?>

    Thread Starter tradtips

    (@tradtips)

    Done.

    Yes you are right it’s showing front page of single posts.

    I found this code in single.Php;

    Thanks you very much for prompt reply you are a great person.

    i want to ask you one more little question.

    how to i create box which you above made you have pasted inside the box code.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘how to hide date , author , admin on the page’ is closed to new replies.