Bricks Help


button_brick
display_brick
email_brick
filter_brick
if_brick
include_brick
input_brick
sort_brick
tag_brick

General Rules

  • The following symbols are reserved for internal brick control and should not be used within the value of a “name=” parameter except as required by this document for specific purposes:  .^!:()[]
  • Also, since a field can appear in a form multiple times, the ‘Name” attribute is used to reference the particular field and is the value tied to the field when stored in a usercustom_field.
  • Also, because of the use for internal brick control, do not use names within CSS styling.  Rely on class and id.
  • Bricks that require a form must be within a brick included form. They will not work within a form defined directly.
  • Also, HTML rules prohibit forms within forms.  Thus brick forms cannot be nested, nor can a brick form be in a regular form or a regular form in a brick form.
  • If you discover that your html editor of choice is rearranging or discarding your bricks, surround them with “<!–bricks–” and “–bricks–>”. They will be treated as comments and not rearranged in your editor, but WP Bricks will strip them so that the bricks will not be hidden as comments on your web page!



back to the top of page


back to the top of page


back to the top of page


back to the top of page

if_brick help
Show everything after this brick only if the condition of the 'if' is met.
If bricks can be nested and all bricks, including include bricks are processed or not processed between a matching if brick and endif brick based on the truth of the condition.
AttributeValuesDefault
logicDoes this if brick 'or' with the previous 'if' brick or do an 'and'.
andThe test must be true for all following content to be displayed and used.
orThe test of the previous if brick OR this if brick must be true. Can only be used if the immediate preceeding brick is an if brick. If the preceeding if brick was 'and' AND it changed the display of content from true to false, then if the result is true for this or any immediately following if 'or' bricks, then the display is enabled.
An if 'or' brick does not use an 'endif' brick to terminate the logic.

Example:
    [if_brick ...][if_brick ...][if_brick logic='or' ...][if_brick logic='or' ...] content [endif_brick][endif_brick]
        If the first if brick is false, the content does not show. the tests in the next three if bricks are not made.
        Otherwise, if all three of the following if bricks fail, the content does not show. if any of the three is true, then the content does show.
'and'
valueThe value to be tested:
post
field
<fieldname>Defines a field belonging to the WP posts table, eg. value='post.field.post_type'
meta
<fieldname>Defines a non-custom field belonging to the WP postmeta table, eg. value='post.meta._price'
custom
<fieldname>Defines a custom field belonging to the WP postmeta table, eg. value='post.custom.publisher'
user
field
<fieldname>Defines a field belonging to the WP users table, eg. value='user.field.user_email'
meta
<fieldname>Defines a non-custom field belonging to the WP usermeta table, eg. value='user.meta.last_name'
custom
<fieldname>Defines a custom field belonging to the WP usermeta table, eg. value='user.custom.allowance'
action
post.addA post is being added, eg value='action.post.add'. Valid compare values are 'yes' and 'no'.
post.updateA post is being updated, eg value='action.post.update'. Valid compare values are 'yes' and 'no'.
searchA search has been requested, eg value='action.search'. Valid compare values are 'yes' and 'no'.
user.addA user is being added, eg value='action.user.add'. Valid compare values are 'yes' and 'no'.
user.loginA user is being logged in, eg value='action.user.login' Valid compare values are 'yes' and 'no'.
user.updateA user is being updated, eg value='action.user.update'. Valid compare values are 'yes' and 'no'.
list
<listname>
countthe number of items in the list, eg to get the numbe of entries in the 'titles' list, use value='list.titles.count'.
server
<fieldname>Defines a field belonging to the server table, eg. value='server.REQUEST_TIME'
no default
is
equalif the field or the result of the action is equal to the value or error
greaterthanif the field or the result of the action is greater than the value or error
greaterthan|equalif the field or the result of the action greater than or is equal to the value or error
lessthanif the field or the result of the action is less than the value or error
lessthan|equalif the field or the result of the action is less than or equal to the value or error
unequalif the field or the result of the action is not equal to the value or error
no default
compare_valueThe value the field is being compared to.
Either compare_value or error must be present, but not both.
no default
error
existing_user_loginAn attempt was made to add a user that already existed.
invalid_emailAn attempt was made to login a user with an invalid or non=matching email address.
(more)Other errors will be added as they are needed.
no default
help'yes' or 'no''no'
endif_brick help
Specifies the end of the information content controlled by the previous matching if brick.
AttributeValuesDefault
--There are no attributes for the endif brick--

back to the top of page


back to the top of page


back to the top of page


back to the top of page


back to the top of page

has been added to the cart. View Cart