How to remove Posted On/Posted By on Wordpress posts?

by 9 replies
17
How do I remove "Posted On" and "Posted By" on my Wordpress posts? I am using WP Portfolio Press theme and have managed to mangle this. Can someone please give me some advice? Here is what I have so far: Reunion Info | Valley High School Class of 1986

Thanks,
C
#programming #on or posted #posts #remove #wordpress
  • There's a fair chance you need to dive into comments.php. Within that, you'll know that "Posted On" and "Posted By" will be written in HTML. Hunt them down and delete them. Make sure you remove the opening and closing PHP as well.

    Hope that helps!
    • [ 1 ] Thanks
  • Thanks for trying to help me but "Posted On" and "Posted By" doesn't exist in the comments.php file on this theme. I'm still stuck so if you or anyone else can think of another option I'm all ears!
    • [1] reply
    • Hi Carrie,

      Ready for some hunting of waskily chunks of generated HTML?

      Just as some guidance on this... in the WP twentyten theme it has a function called twentyten_posted_on.... that has all that guff in it. That's in the the themes function.php file

      So take a look in your themes function file... It might it in there.

      If you have the WP files local on your PC you can do a search for the term "posted on" and it will reveal all!

      Once you do find the function - if there is one... you can search through the other files and just comment out / remove the call to it...

      If that's still all confusing and the theme you are using is freely available, let us know and I can hunt it down for you.... But it's good fun if you have a go at it first!

      Cheers
      Tim
      • [ 1 ] Thanks
      • [1] reply
  • Try deleting <?php the_time('F jS, Y') ?> from your single.php and index.php.
    • [ 1 ] Thanks
    • [1] reply
    • Hi Steve,
      Index.php and single.php doesn't have that info. Copied below is what is in the index.php and I did a search on single.php to make sure that it doesn't have that info.

      <?php
      /**
      * @package WordPress
      * @subpackage Portfolio Press
      */
      ?>

      <?php get_header(); ?>

      <div id="content">

      <?php get_template_part( 'loop', 'index' ); ?>

      </div><!-- #content -->

      <?php get_sidebar(); ?>
      <?php get_footer(); ?>
      • [1] reply

Next Topics on Trending Feed