Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 –  01tonythomas Sep 4 '13 at 4:20
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.