开发者 |
WeeManDan
benbacardi |
---|---|
更新时间 | 2007年5月25日 22:50 |
捐献地址: | 去捐款 |
PHP版本: | 2.1.3 及以上 |
WordPress版本: | 2.1.3 |
<?php fbv_get_verse( "random" , "verse" ); ?>
.
The first parameter can take the values random, actual verse reference or verse id as shown in database. If random is used, the plugin will display a random verse from the database. If an actual verse reference is used (for example, John 3:16) the plugin will display the specified verse, if the reference is found in the database. If an id is used (for example, 1), then the verse with that ID (if any) will be displayed.
The second parameter determines what part of the verse is displayed. By default it is set to verse, and will display the actual verse text, but not the reference. If it is set to reference it will display just the reference.
If random is used for the first parameter, the second time the function is called (for example, displaying the verse and then the reference), a random verse will NOT be displayed. Instead, it will display the relevant reference/verse determined by the random verse/reference displayed before.