开发者 |
christopherross
thisismyurl |
---|---|
更新时间 | 2016年4月6日 22:35 |
捐献地址: | 去捐款 |
PHP版本: | 3.2.0 及以上 |
WordPress版本: | 4.1.0 |
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.