How To Publish The Feed Later


Sponsored Links






This is another nice tweak for your WordPress, with Publish The Feed later, you can schedule it and make it more easy to your reader. or do you have another plan?

I got this tips from WP Engineer, Like we all know WordPress works with a special query, which acts differently depending on the user rights. It is always saved in the variable $where and differently assembled. That means, you can extend it.

If you look at the possibilities of mySQL, there is a function timestampdiff(). I extend the query of WordPress with this function. Note to query the feed before (is_feed()), if not it will be also happening for the classical publishing of posts in your blog.

The following example publish the post 15 minutes later in your feed:

Open your functions.php theme and write this code

/**
 * puplish the content in the feed later
 * $where ist default-var in WordPress (wp-includes/query.php)
 * This function an a SQL-syntax
 */
function publish_later_on_feed($where) {
	global $wpdb;

	if ( is_feed() ) {
		// timestamp in WP-format
		$now = gmdate('Y-m-d H:i:s');

		// value for wait; + device
		$wait = '5'; // integer

		// http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timestampdiff
		$device = 'MINUTE'; //MINUTE, HOUR, DAY, WEEK, MONTH, YEAR

		// add SQL-sytax to default $where
		$where .= " AND TIMESTAMPDIFF($device, $wpdb->posts.post_date_gmt, '$now') > $wait ";
	}
	return $where;
}

add_filter('posts_where', 'publish_later_on_feed');

Or you can use Plugins version

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

How to Exclude Some Categories from Feed, Archives, Search, and Home page

Exclude Some Categories on Feed, Archives, Search and many more in WordPress  is another solutions to hidden our content from un necessary reader, there are some plugin that can handle it. Recently, Miriam found an AMAZING plugin, Simply Exclude by … Read More

How to Exlclude some Categories on your WordPress RSS Feed

Using WordPress we can create unlimited possibility, we can create and use dozen themes, integrated with others CMS and many more. But for today tricks, I will show you how To exclude some categories from our WordPress RSS Feed. Example, … Read More

Post Thumbnail on RSS Feed

Jeff Starr give nice tricks how To Added Post Tumbnail in our RSS Feed, and I will show you on today wordpress tips. This code only need tiny hack, we put some code in our functions.php and the code will … Read More

How To Create Custom Widgets

WordPress is the most Usable Publishing System I ever use and found, there are so many blogger and internet writer uses WordPress on they blog. WordPress has many free themes and plugins, the other reason is, they add nice featured … Read More

How To Add Content to the End of Each RSS Post

RSS is simple ways to tell our readers what news on our sie, WordPress has designed with many feed format. And Now let's me show you how to tweak RSS Feed with extra function we can added content on our … Read More

The Best Way to Insert Custom Content into Feeds

My Another Favorite featured in WordPress is easy to tweak it out. And WordPress good support on Feed. Sometime we need to insert custom content into our WordPress Feeds right? On this post I will show you how to Insert … Read More

Delay Your Feed Publishing » WPCanada - WPCanada » in the great

What we have done is add a filter to the publish_later_on_feed function so that your feed is not published at the same time your post is. You can adjust the time delay to read more

Source: http://wpcanada.ca/2010/delay-your-feed-publishing/

Reinvented Software - Feeder - Create, Edit and Publish RSS and

Mac OS X 10.5 or later, Intel-based Mac. also update weblog entries it has published when you change items and publish your feed. read more

Source: http://reinventedsoftware.com/feeder/

Easy Ways to Publish Your Own RSS Feeds

Easy Ways to Publish Your Own RSS Feeds Use RSS to help Syndicating your organization's content in an RSS feed of Plone leading up to the Plone conference later this read more

Source: http://www.techsoup.org/learningcenter/internet/page5820.cfm

XML.com: ROME in a Day: Parse and Publish Feeds in Java

ROME in a Day: Parse and Publish Feeds in Java By Mark RSS or Atom specification, but was rather added later to actions * by using information from the feed item read more

Source: http://www.xml.com/lpt/a/1645

Auto-Publish Your Feedburner RSS Feed To Twitter | ShanKrila

Bloggers using Feedburner to publish your RSS feeds used a WordPress plugin to automatically publish your RSS feed to I will share those with you in a later post. [via read more

Source: http://www.shankrila.com/tech-stuff/feedburner-rss-twitter-integration/


4 Responses to How To Publish The Feed Later

  1. Pingback: designfloat.com

  2. Pingback: How To Display External RSS Feeds # WordPress Tricks & Tips

  3. Pingback: Post Thumbnail on RSS Feed | Silver Blog

  4. Pingback: Post Thumbnail on RSS Feed | Unlock IMEI Cellphones

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>