Shortcode reference
Complete reference for the Sense Forms shortcode and its attributes.
Syntax
[senseform id="1"]
[senseforms_form id="1"] is an alias and behaves identically.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
id |
integer | — | Required. The form ID, shown in Sense Forms → Forms. |
title |
string | empty | Overrides the form’s displayed title. |
class |
string | empty | Adds a CSS class to the form wrapper. |
Examples
Basic:
[senseform id="1"]
Different heading in a sidebar:
[senseform id="1" title="Quick enquiry" class="sidebar-form"]
In a template file
<?php echo do_shortcode( '[senseform id="1"]' ); ?>
Generated markup
The form is wrapped in a container carrying its ID:
<div class="pf-form-wrapper" id="pf-form-1" data-form-id="1">
Use that ID to scope CSS to a single form. See styling forms.
Error behaviour
A shortcode with a missing or invalid id shows a red reminder to logged-in administrators and nothing at all to visitors. If a form looks missing on the front end, view the page while logged out to confirm what visitors actually see.