Display Current Date using shortcode

You need to use date() in place of gmdate(), which returns the date/time for GMT. To get the output you want, change the code to: echo date(‘l, jS F, Y’); For displaying tomorrow’s date, use the following code accordingly: $timestamp = strtotime(‘tomorrow’); echo date(‘l, jS F, Y’, $timestamp);

How to disable date archives?

Do you happen to use the Yoast SEO plugin? There is an option in the plugin under Search > Archives where you can switch off the Date archives. (and also Author archives if you want to).

Is it possible to change X Hours Ago to date in WP Admin?

On the WooCommerce Orders admin page, the order date column is set on line 256 of this file: ../wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php If you want to change “ago” you can translate it. If you want to change the human readable time (e.g. “10 hours”), you can override the WordPress human_time_diff function. This answer has more details.

If Post Published Date or Modified Date is 1 Year or Older, Display Notice on Post Page

Right now you’re just checking for the post date. You’ll need to check for ‘post_modified’ aswell. You can find the complete post-object here: https://developer.wordpress.org/reference/functions/get_post/#user-contributed-notes You can modify the check to look something like this: if (strtotime($post->post_date) < strtotime(‘-1 year’) && strtorime($post->post_modified) < strtotime(‘-1 year’)){ echo ‘Old Post’; } else { echo ‘Not Old Post’; } … Read more