I have a wordpress blog, I need to implement a simple condition as below: If the date of current post is less than 14 days Run A Procedure(I already have this code) Else Run B Procedure(I already have this code) End If This code need to be implemented into every post, so it need to be fast and does not consume too much resources. I am not good in coding, I not sure how complicated this can be but if you need to charge me on the code please let me know the price before you start. If it is a simple one, I really appreciate your help.
I wonder what exactly you are looking for: You need a code for the or The code implementation into every post. Regards, Amer
Hello you need to put this code at single.php wordpress theme file, and maybe also at index.php or home.php if you are using, and maybe page.php too if you want to implement this on pages too... u need to simply pick the post date and current date, convert them to unix timestamp and substract post date from current date... compare the anwers with 1 209 600 as it is number of seconds in 14 days.... If you need exact code for this in php, i can do this , contact me at WarMarks.com Thanks