开发者 | mpntod |
---|---|
更新时间 | 2018年3月18日 21:05 |
捐献地址: | 去捐款 |
PHP版本: | 2.5 及以上 |
WordPress版本: | 4.9 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[cformstable form='nameofyourform']
with a table of data or a count of information collected via the excellent CForms II.
Examples would be:
[cformstable form='nameofyourform']
to display how many entries have been collected by your form[cformstable form='nameofyourform' display='table' vars='Name,Date,Comment']
to display a table of entries collected by your formdisplay = 'number'
or 'table'
- (the default is 'number'
)form = 'the name of your form'
- if you don't know the names of possible forms, just use [cformstable]
to get a list of optionsfrom =
DATETIME string (format: Y-m-d H:i:s
). Date & time defining the start of a target period, e.g. 2008-09-17 15:00:00
(optional)to
=DATETIME string (format:
Y-m-d H:i:s). Date & time defining the end of a target period, e.g.
2014-09-17 15:00:00` (optional)limit =
'the maximum lines to show in the table or count' (optional)vars =
list of variable names to use as column headers separated by commas e.g. 'Name,Date,Comment'
. To change the way the name is displayed, add your revised text after |
, e.g. vars='Name|Your Name,Date,Comment'
cols =
list of variable numbers to use as column headers separated by commas e.g. '1,2,3'
. You can get variable numbers by posting [cformstable display='table' form='Name of your form']
. As with the vars setting, to change the way the name is displayed, add your revised text after |
, e.g. cols='1|Your Name,2,3'
.limit = 'the maximum lines to show in the table'
(optional)sortdir = 'asc'
or 'desc'
(optional)sort = 'form', 'id', 'date', 'ip'
or 'email'
or any other form input field, e.g. 'Your Name'
(optional)deduped = TRUE
or FALSE
- remove duplicate IP/email addresses from count (optional)adjust = 'n'
where n
is a numerical value (+10, -20 etc.) to adjust the count displayed up or down (optional)cformstable.php
to the /wp-content/plugins/
directory[cformstable display='table']
in your post or pageNo. You need to install it. For versions of CForms II after 15.0, you may also need to install Old Tracking DB for cformsII
cols
listcols
variable.cols
variable to shortcode to allow people to select variables for display by number e.g. cols='1,2,3,4'
adjust
and deduped
0.23
Fixed bug where selected table is empty.
0.221
Fully fixed bug where count is zero
0.22
Fixed bug where count is zero
0.21
Partial fix of bug where count is zero
0.2
First published version