Dynamic Modifications

It is possible to dynamically modify or insert data as part of your modification. This is where you either modify an existing value, or insert data from another column.

Dynamic modifications are achieved via shortcodes that you insert into the modification.

Modify a column

You can wrap data with a column modifier:

[upper]value[/upper]

Typically this would be used with a regular expression to find data, capture it, and then insert a modified version back.

The following modifiers are available:

  • upper – convert the value to upper case
  • lower – convert the value to lower case
  • dashes – change any underscores and spaces to a dash
  • underscores – change any dashes and spaces to an underscore

Insert data

The following shortcodes will insert dynamic data

  • date – insert the current date. Accepts a format which matches the PHP date format.
    • [date format="r"]
  • value – insert the column value as-is
  • column – insert data from another column. Accepts a name parameter for the column name (matching the database column name)
    • [column name="post_title"]