Linux 软件免费装
Banner图

Easy Random Posts

开发者 christopherross
thisismyurl
更新时间 2016年4月6日 22:29
捐献地址: 去捐款
PHP版本: 3.2.0 及以上
WordPress版本: 4.1.0

标签

post posts plugin sidebar random wordpress theme php easy code list posts

下载

2.1.4

详情介绍:

This easy to use WordPress plugin is designed to add a new feature for theme developers. Used on many of my own websites as well as those of my clients, the plugin allows me to quickly add a collection of random posts to any theme element. To add random posts to your website, simply add the code <?php thisismyurl_easy_random_posts();?> to your element. This will generate a list of random posts to your website. This plugin is maintained by Christopher Ross, http://thisismyurl.com or you can find him on Twitter at http://twitter.com/thisismyurl/

安装:

To install the plugin, please upload the folder to your plugins folder and active the plugin.

屏幕截图:

  • Screenshot of Widget

常见问题:

How do I display the results?

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. thisismyurl_easy_random_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: thisismyurl_easy_random_posts('before=<p>&after=</p>');

The Order

You can now change the order of the results using ASC, DESC or RAND to return the results in ascending, descending or random order of date published. thisismyurl_easy_random_posts('order=ASC;');

Nofollow

You can set if the link is displayed as a nofollow link for SEO optimization using the new nofollow option. thisismyurl_easy_random_posts('nofollow=true;');

Echo vs. Return

Finally, if you'd like to copy the results into a variable you can return the results as follows: thisismyurl_easy_random_posts('show=false');

更新日志:

2.1.4 2.1.2 2.0 1.7 1.6.6 1.6.5 1.5.5 1.5.2 1.5.1 1.5.0 1.1.5 1.1.0 1.0.0 0.1.0