Change the date and time in wordpress

Maybe you’ld like to go to settings > general and then add a custom date format. Like d.m.1985 instead of d.m.Y Or you write a function that subtracts the time you want from the current date. Or you set the server time back to 1985. But that’s no good idea since it will affect other … Read more

automatic send email at custom time

Creating a Scheduled Event First we’ll create a function that will schedule our event. Mine is called “mycronjob” and it will run once every day. All this code can go into your plugin’s main file, outside the main function: // create a scheduled event (if it does not exist already) function cronstarter_activation() { if( !wp_next_scheduled( … Read more

Show post date on the page

the_date() is technically the template tag to do it. However it has a somewhat unusual aspect to only output once per date, so if there are multiple posts on page from same date they won’t all show it. get_the_date() is one level lower and retrieves (not outputs) a post’s date without that bit of logic.

Display ‘modified date’ in WordPress Twenty Fourteen

Look for the code that displays the post date. It should look something like the following: Posted on: <?php the_time(‘l, F jS, Y’) ?> Now replace it with the following code (slightly modified from Ardamis’ post): Posted on <?php the_time(‘F jS, Y’) ?> <?php $u_time = get_the_time(‘U’); $u_modified_time = get_the_modified_time(‘U’); if ($u_modified_time != $u_time) { … Read more

How to display Date and Time in Tamil Language?

Unfortunately as describes it is far from trivial to display just the date in localized format. The function for localized date output in WP is date_i18n(). But it doesn’t have a concept of output in arbitrary locale. It always takes locale to use from global $wp_locale context. You would have to pretty much rebuild this … Read more

error code: 523