Add a standalone support ticket form to any WordPress page with the [dctc_support_ticket_form] shortcode. It can render an inline form or a button that opens the ticket form, independently of the customer ticket list.
1. Add the shortcode
- Edit the page where visitors should submit support requests.
- Add a Shortcode block in the WordPress block editor, or paste the shortcode into the content area of the editor you use.
- Insert
[dctc_support_ticket_form]and save the page. - Preview the page and submit a test ticket using a test account or the configured guest flow.
2. Choose inline or button-triggered display
The shortcode supports attributes for controlling how the form appears. For example, render the form directly in the page content with:
[dctc_support_ticket_form inline="true"]
To keep the default launcher/modal behavior, omit the inline attribute or set it to false. The shortcode also supports optional attributes for a custom trigger selector, button text and class, form title and subtitle, a preselected category, and whether to show the header.
| Attribute | Purpose | Example |
|---|---|---|
inline | Render the form in the page instead of using the popup modal. | inline="true" |
button_text | Set custom text for the default launcher button. | button_text="Contact Support" |
title | Override the form or modal title. | title="Create a Support Ticket" |
subtitle | Set the supporting description. | subtitle="Tell us how we can help." |
category_id | Preselect a support category by its numeric ID. | category_id="3" |
show_header | Show or hide the form header. | show_header="false" |
trigger_selector | Connect the form modal to an existing button or element selector. | trigger_selector="#support-button" |
The implementation also accepts trigger_id and trigger_button_id as alternate trigger attributes, and button_class for the default launcher styling. Use a selector that matches an element on the same page when connecting an existing button.
3. Check guest ticket settings
Logged-in users can render the form. Visitors who are not logged in can submit through this shortcode only when guest ticket creation is enabled in the Support Center settings. If guest creation is disabled, the form displays a login prompt instead.
When guest tickets are enabled, review the guest-session timeout and storage settings and test the access flow carefully. Never share a guest ticket token or private ticket link with another person.
4. Troubleshoot a form that does not appear
- Confirm the shortcode is entered exactly as
[dctc_support_ticket_form]and is not wrapped in code formatting on the live page. - Check whether the page builder or theme strips or escapes shortcodes.
- If using
trigger_selector, verify the selector matches the intended button or element. - If the form is missing for a logged-out visitor, check whether guest ticket creation is enabled.
- Test with other caching or script-optimization plugins disabled on staging if the form shell appears but interactions fail.