using wp_update_post on save_post
im trying to update a posts date (-1 year), when you hit update. but it causes an infinite loop.
im trying to update a posts date (-1 year), when you hit update. but it causes an infinite loop.
I want to change the date of publication of my already published posts to random dates within the range starting from 2015 till today.
Why do we have 2 date fields in the wp_posts? What’s the purpose of the post_date_gmt? When does storing the greenwich time get handy?
This is all about featuring content in WP.
I currently have a custom post type called ‘events’. I created this from a tutorial here http://tatiyants.com/how-to-use-wordpress-custom-post-types-to-add-events-to-your-site/. I want to query the date to only show the posts with dates coming up and not ones on the past. $event_date >= time
I have date format and would like to translate to another language with date_i18n function how can I integrate with get_post_time here is my code :
I’m working on an email system and they want it automated to send out emails every second thursday of the month. I’ve got the PHP sorted out and ready to fire a callback to send the emails, but I’m a complete newbie when it comes to cron and scheduling events.
I have a query as follows:
I’m looking to replace an events plugin that i have on my website currently. We realize we don’t need a full blown calendar and things like that, we just need to be able to enter in Events with a start and end date and also custom times. I made custom fields for start date and end date using the Advanced Custom Fields -> Date Picker fields. Naturally, it’s possible that an event may span over multiple months.
I need to pull out the post publish date in order to make the post post auto expire. The thing is I can’t get the right publish date.