WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add a new 'Now' button under the 'Published on' header so as to return the current date and time to the post update time. This would help people who want to update their post with a recent time, with ease than publishing with the original publishing time. It would work if, the action of 'Publish' button is given to the 'Now' button as, 'Publish' button returns current date and time to the 'Published On' column. Please help me with the code. I edited the templates.php and added the following code under the publishing action metabox :

    <input name="original_publish" type="hidden" id="original_publish" 
    value="<?php esc__attr_e('Publish') ?>" />
    <?php submit_button( __( 'Now' ), 'primary button-small', 'publish',  
    false, array('accesskey' => 'p' ) ); ?>
share|improve this question
What code have you tried so far? Please add it to your question. – epilektric Sep 3 '13 at 23:51
I have added the code. The code was copied from meta-boxes.php to templates.php – tonythomas01 Sep 4 '13 at 4:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.