Re:Maily contact form builder is now available on WordPress.orgSee it live
Config paths
Updated 3 min read13 views
A layout’s settings are one array, $config in PHP, saved as JSON in the _forma_config meta. A path names one setting: layout.slider.speed is $config['layout']['slider']['speed']. forma.field and forma_select_options take these paths, and so do field conditions.
// In skin.php: a larger title on Metro grids
$tag = 'metro' === $config['layout']['type'] ? 'h2' : 'h3';
forma_item_part( 'title', $item, [ 'tag' => $tag ] );
Content
Path
Default
Values
query.source
portfolio
A source ID: a post type, media, or a taxonomy’s terms
query.per_page
9
1 to 100, or -1 for all
query.orderby / query.order
date / DESC
The source’s Order by options; ASC or DESC
query.offset
0
Items to skip
query.include / query.exclude / query.authors
[]
IDs
query.taxonomies / query.tax_relation
[] / OR
Term IDs per taxonomy; AND or OR
query.search
”
Words to match
query.images / query.image_data
[]
Media source: image IDs, and each image’s own fields