An easy to use WordPress function to add scheduled posts to any theme.
Insert the following code into your WordPress theme files:
General results Without passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.
<?php thisismyurl_easy_scheduled_posts();?>
Specific number of results If you would like to return a specific number of results as your maximum:
<?php thisismyurl_easy_scheduled_posts('count=10');?>
Altering the before and after values By default the plugin wraps your code in list item (<li>) tags but you can specify how to format the results using the following code:
<?php thisismyurl_easy_scheduled_posts('before=<p>&after=</p>');?>
Adding a Link new If you'd like to link to the post (remember it's not live yet) you can do so by calling:
<?php thisismyurl_easy_scheduled_posts('link=true');?>
Order of links new You can change the order of the links by using ASC for ascending, DESC for descending or RAND for random order.
<?php thisismyurl_easy_scheduled_posts('order=ASC');?>
Echo vs. Return Finally, if you'd like to copy the results into a variable you can return the results as follows:
<?php thisismyurl_easy_scheduled_posts('show=false');?>
Technically yes. Until I upgrade the version to 1.x, I still consider it to be in development but yes it has been tested and works well.
Requires: 2.8.0 or higher
Compatible up to: 3.2.1
Last Updated: 2011-6-30
Downloads: 6,565
Got something to say? Need help?