All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Disable RelativeDate at certain places?  (Read 3187 times)

0 Members and 1 Guest are viewing this topic.

Offline nasadows98

  • Newbie
  • *
  • Posts: 3
    • View Profile
Disable RelativeDate at certain places?
« on: 29 August 2008, 10:36 »
Hi,
I am currently using DreamPlace Theme by Natty WP.
Code: [Select]
http://wordpress.org/extend/themes/dreamplace
That theme uses a small box ("Calendar-like") at the head of each entry to display ONLY the MONTH and DATE.
Unfortunately Relative Date is applied also and it turned into a mess.
So can I somehow disable RelativeDate at that place only? I still want to use RelDate at other places like the comments. Please show me how. Thanks!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Disable RelativeDate at certain places?
« Reply #1 on: 29 August 2008, 14:50 »
You can add:
Code: [Select]
<?php remove_filter('the_date''relative_post_date'); remove_filter('the_time''relative_post_time'); ?> before the calendar function is called.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline nasadows98

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Disable RelativeDate at certain places?
« Reply #2 on: 29 August 2008, 16:13 »
It worked thanks very much!  ;D
I'll try to test run it for a while to see if there's any problem. Anyway, does that mean that the function is disabled from that point forward of the php file? Sorry I don't know much about coding.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Disable RelativeDate at certain places?
« Reply #3 on: 29 August 2008, 18:52 »
yea that is right

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.