<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Scheduling the Post Date</title>
		<link>https://legacy.forums.gravityhelp.com/topic/scheduling-the-post-date</link>
		<description>Gravity Support Forums Topic: Scheduling the Post Date</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 11:59:14 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/scheduling-the-post-date" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Scheduling the Post Date"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/scheduling-the-post-date#post-62926</link>
			<pubDate>Mon, 18 Jun 2012 19:23:52 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">62926@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Wouldn't you have to change the post_status to &#60;em&#62;future&#60;/em&#62; as well, instead of &#60;em&#62;publish&#60;/em&#62;, in addition to setting the date in the future?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_update_post&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_update_post&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_insert_post&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_insert_post&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>oturia on "Scheduling the Post Date"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/scheduling-the-post-date#post-62775</link>
			<pubDate>Sat, 16 Jun 2012 19:18:02 +0000</pubDate>
			<dc:creator>oturia</dc:creator>
			<guid isPermaLink="false">62775@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've read through the forums thoroughly and tried a few of the things I've seen, but wasn't able to get it to work.&#60;/p&#62;
&#60;p&#62;I have a form that is posting to a custom post type. The form creates directory listings. The directory listing page templates only show posts in the future, so I'm trying to have the form post a date that is equal to today's date plus a year. The posts are going through okay but the date is not being changed. This is my current functions code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_pre_submission&#38;#39;, &#38;#39;set_post_date&#38;#39;, 10, 2);
function set_post_date($post_data, $form){
			return $post_data;
			$today_date = date(&#38;#39;Y-m-d&#38;#39;); /** CURRENT DATE*/
			$time_value = date(&#38;#39;H:i:s&#38;#39;); /** CURRENT TIME*/
			$date_value = strtotime(date(&#38;#39;Y-m-d&#38;#39;, strtotime($today_date)) . &#38;#39;+1 year&#38;#39;); /** ADJUSTED DATE*/
			$post_date = date(&#38;quot;Y-m-d H:i:s&#38;quot;,strtotime($date_value . &#38;quot; &#38;quot; . $time_value));
			$post_data[&#38;quot;post_date&#38;quot;] = $post_date;
			return $post_data;
	 }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I also tried setting my filter to gform_post_data but that didn't change anything either. &#60;/p&#62;
&#60;p&#62;Am I using the wrong filter to affect the post date?&#60;/p&#62;
&#60;p&#62;All the Best,&#60;br /&#62;
Jason
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
