1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Date exclusion plugin

Discussion in 'WordPress' started by bob25, Feb 19, 2010.

  1. #1
    Is there a date exclusion plugin the removes the date from all the pages? I've tried a couple, but they only removes the date from the front page.

    Or anybody know the code to remove from the php files?

    Thanks
     
    bob25, Feb 19, 2010 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    The function which displays the date in Wordpress is the_date() and function which displays the time - the_time(). So find these functions in the files of theme directory (often this functions are in the files index.php, archive.php, search.php and single.php) and delete.
     
    s_ruben, Feb 19, 2010 IP
  3. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Yeah I can search through the php files manually, but I need the code for the date and time. I deleted it on another template, but I'm changing templates and can't locate where I kept the info.

    Thanks
     
    bob25, Feb 20, 2010 IP
  4. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
    #4
    Found it :) <?php the_time(__('F jS, Y', 'kubrick')) ?>

    Thanks
     
    bob25, Feb 20, 2010 IP
  5. internetmarketingiq

    internetmarketingiq Well-Known Member

    Messages:
    3,552
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    165
    #5
    internetmarketingiq, Feb 20, 2010 IP
  6. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
    #6
    I already edited the templates, but I'll save it for the next time I install the theme. The ones I tried only removed the time stamp from the homepage, but this one doesn't look like one I tried.

    Thanks
     
    bob25, Feb 20, 2010 IP
  7. Wp-Mod.Com

    Wp-Mod.Com Peon

    Messages:
    381
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ok , do this way , open theme editor and open page.php and search for this function in it

    the_date or the_time

    delete that code and you will be surely fine , if any problems dont hesitate to contact or rather paste your page.php of your theme and i can help you with that
     
    Wp-Mod.Com, Feb 20, 2010 IP