Demo Shortcode - for Member Directory - Do Not Delete
Login as any member with the tag "Website Access" and you can see the 3 different shortcodes at the testing links below...
Search By Group
Search By State
!You can see that the results look different in different cases, if you look at the page listed above in html viewing mode within WP you'll see the shortcodes look like this...
i4w_memberlist3 type="alpha" pagelimit="1000" formname="myformname" getfields="Id, FirstName, LastName, Email, State" fieldheaders="ID|100, First Name|200, Last Name|250, Email|150, State|100" tags="99, 103" tablestyle="id='myID'" row1="#666" row2="yellow"]
i4w_memberlist3 type="state" pagelimit="1000" formname="myformname" getfields="Id, FirstName, LastName, Email, State" fieldheaders="ID, First Name, Last Name, Email, State" tags="99, 103" tablestyle="id='myID'" row1="#666" row2="yellow"]
i4w_memberlist3 type="custom" pagelimit="1000" formname="myformname" getfields="Id, FirstName, LastName, Email, State" fieldheaders="ID|100, First Name|200, Last Name|250, Email|150, State|100" customfield="_roundtablesgroup0" cfvalues="John, Nova, Perseus, Quattro, Mentor II, Mentor III, Gamma, Heritage, Neptune, Builders, Preakness, Aquila, Galaxy, Izar, Krypton, Orion, Titan, Vega, Zelante" tags="99, 103" tablestyle="id='myID'" row1="#666" row2="yellow"]
The parameters controlling the shortcodes are
- type : alpha(default), state, custom*
- pagelimit : 1000(default)*
- customfield: required, if using type=custom
- cfvalues : required, if using type=custom
- tags : required
- formname : memberlist3(default), will automatically generate _alpha, _state or _custom to enable each type of shortcode on the same page
- getfields : Id, FirstName, LastName, State(all default)* **
- fieldheader: ID|100, First Name|100, Last Name|100, Email|150, State|100* ** ***
- tablestyle : class or id for this table. No default value. example id='myID' or class='myClass'*
- row1 : background-color for first row (default: grey)*
- row2 : background-color for second row (default: white)*
* optional, if empty, default will be used
** getfields and fieldheaders needs to be synchronized
*** number right of the pipe(|) is cell width in pixels. Optional