The Trip Review Form shortcode allows you to place a review submission form anywhere on your WordPress site, enabling guests to easily leave feedback about their travel experiences. Visitors can rate their trip, write detailed reviews, and optionally upload photos.
Basic Usage #
To add a review form to a page or post, insert the shortcode:
[trip_review_form trip_id="1234"]
Replace 1234 with the ID number of the trip you want visitors to review.
Important: The trip_id option is required unless you place the form directly on a trip’s page, where it will automatically detect the current trip.
Available Options #
You can customize which fields appear in the form by adding options to the shortcode. This allows you to create simple or detailed review forms depending on your needs.
Trip Selection #
trip_id – Specify which trip the review is for.
- Format:
trip_id="1234"(use the trip’s ID number) - Default: Auto-detects the current trip when used on a trip page
- When to use: Always include this option when placing the form on pages other than the trip’s own page
- Why it’s important: This tells the form which trip the review should be associated with
Example:
[trip_review_form trip_id="2487"]
Form Field Controls #
show_title – Toggle the review title field.
- Options:
trueorfalse - Default:
true - What it does: When set to
true, displays a text field where reviewers can enter a headline for their review (e.g., “Amazing adventure in the Alps!”). Set tofalseto remove this field and simplify the form.
Example:
[trip_review_form trip_id="2487" show_title="false"]
show_rating – Toggle star rating pickers.
- Options:
trueorfalse - Default:
true - What it does: When set to
true, displays interactive star rating controls where reviewers can rate their experience. Set tofalseto hide the rating system.
Example:
[trip_review_form trip_id="2487" show_rating="false"]
show_content – Toggle the main review text box.
- Options:
trueorfalse - Default:
true - What it does: When set to
true, displays the main text area where reviewers write their detailed feedback. Set tofalseto hide this field (useful if you only want ratings or photo submissions).
Example:
[trip_review_form trip_id="2487" show_content="false"]
show_images – Allow photo uploads.
- Options:
trueorfalse - Default:
true - What it does: When set to
true, reviewers can upload photos from their trip alongside their written review. Set tofalseto disable photo uploads and keep reviews text-only.
Example:
[trip_review_form trip_id="2487" show_images="false"]
show_name – Toggle the name field.
- Options:
trueorfalse - Default:
true - What it does: When set to
true, displays a field where reviewers enter their name. Set tofalseto hide this field (useful for anonymous review collection).
Example:
[trip_review_form trip_id="2487" show_name="false"]
show_email – Toggle the email field.
- Options:
trueorfalse - Default:
true - What it does: When set to
true, displays a field where reviewers enter their email address. Set tofalseto hide this field and skip email collection.
Example:
[trip_review_form trip_id="2487" show_email="false"]
Styling Options #
class – Add a custom CSS class to the form wrapper.
- Format:
class="your-class-name" - Default:
tre-review-form-shortcode - When to use: When you want to apply custom styling to a specific review form
- What it does: Appends your chosen class name to the form container, allowing you to target it with CSS
Example:
[trip_review_form trip_id="2487" class="compact-review-form"]
Complete Example #
Here’s a fully customized shortcode that creates a simplified review form:
[trip_review_form trip_id="2487" show_images="false" class="compact-review-form"]
This shortcode:
- Links the form to trip #2487
- Disables photo uploads for a faster, simpler submission process
- Applies the “compact-review-form” CSS class for custom styling
- Keeps all other fields (title, rating, content, name, email) visible by default
Custom Styling Example #
You can style your review form by adding CSS to your theme. Here’s an example that creates a clean, modern form design with a soft blue background:
Where to add this code: Go to Appearance → Customize → Additional CSS in your WordPress dashboard, or add it to your theme’s stylesheet.
.compact-review-form .tre-review-form-content {
background: #f6f9ff;
border: 1px solid #ced9ff;
border-radius: 20px;
padding: 32px;
}
.compact-review-form .tre-form-field label {
font-size: 0.9rem;
letter-spacing: 0.03em;
}
This CSS:
- Gives the form a soft blue background (
#f6f9ff) - Adds a matching blue border (
#ced9ff) - Creates rounded corners (20px radius) for a friendly appearance
- Adds comfortable padding (32px) around form fields
- Styles field labels with a smaller, slightly spaced font for a refined look
Usage Tips #
For simple feedback: If you only need quick ratings without detailed text, hide unnecessary fields:
[trip_review_form trip_id="2487" show_title="false" show_content="false" show_images="false"]
For anonymous reviews: Remove personal information fields to encourage honest feedback:
[trip_review_form trip_id="2487" show_name="false" show_email="false"]
For photo-focused testimonials: Keep the form minimal but enable photo uploads:
[trip_review_form trip_id="2487" show_title="false" show_images="true"]
Summary #
The Trip Review Form shortcode ([trip_review_form]) makes it easy to collect traveler feedback anywhere on your WordPress site. Whether you need a comprehensive review form with photos and detailed text, or a quick rating widget, this shortcode adapts to your needs.
By toggling individual fields on or off, you can create the perfect balance between gathering useful information and keeping the submission process simple for your guests.
Place the form on trip pages, thank-you pages after booking, or dedicated review collection pages to gather authentic testimonials that help future travelers make informed decisions.
