Add bookable Viator experiences to WordPress
PI Viator Affiliate connects WordPress to the Viator Partner API to display tours, activities and attractions. Add listings with a shortcode, widget, page assignment or automatic placement. Visitors book on Viator through your tracked affiliate links.
[pi_viator destination="479" limit="6" columns="3"]
Mountain Lookouts Small-Group Day Trip
Book Now ↗We may earn a commission when you book through these links.
Your Travel Content, Connected To Viator Bookings
Search the Viator catalogue by destination, keyword, category, price, rating, duration or travel dates, then publish clean, responsive listing cards that send travellers to book on Viator through your affiliate links.
From The Viator API To Your Page In Four Steps
Activate the plugin, connect your own Viator Partner API token, choose what to show and place it anywhere. Listings use current API search results; customers complete their bookings on Viator.
Activate & connect
Activate your PI licence, save your Viator API token and pick Sandbox or Production. Use Test API Key to confirm.
Build your search
Use the Shortcode Builder to set destination, keyword and filters, preview real results and copy the shortcode.
Place the listings
Add a shortcode or widget, assign listings to a page, or let Automatic Placement fill chosen content types.
Earn on bookings
Visitors click through to Viator in a new tab using the tracked product link, with your campaign code attached.
Live, Not Imported
Experiences are fetched from Viator for the configured search. No products are saved as WordPress posts and no catalogue is stored on your site.
- No import engine to schedule or clean up
- Results cached briefly, then refreshed
- Search and location requests go to Viator
Booking Stays On Viator
The plugin shows the experience and sends the traveller to Viator to book. There is no checkout, review system or payment handling to maintain.
- Tracked product URL preserved from the API
- Links open in a new tab
- Links marked
rel="sponsored"
Disclosure Built In
Show an editable affiliate disclosure under every listing grid so visitors know you may earn a commission when they book.
- Default text included and fully editable
- Campaign code per site, page or shortcode
- You stay in charge of your own terms
Add listings before or after permanent guide content.
Check API status, caches and environment details.
A Checklist That Ticks Itself As You Configure
The Help & Support tab walks you through three journeys—Live Listings, Display on Pages and Setup & Support—with numbered steps that jump straight to the right setting and show what is already done.
- Deep links into the exact tab or sub-tab for each step
- Completed steps are marked automatically
- Environment details ready to copy for support requests
- Your last Viator API response and allowance at a glance
Show Real Viator Experiences With One Shortcode
Each listing card can show a thumbnail, duration, description excerpt, from-price and a Book Now button—straight from the Viator API. Place a grid with a shortcode, a widget or a page assignment.
Old Town Food & Culture Walk
Rich Listing Cards
Thumbnail, title, duration, description excerpt, from-price with currency and a Viator booking button—each field switchable.
Verified Addresses
Show a meeting-point or tour-stop address when Viator supplies one. Unsupported lookups simply omit it.
Live Listings Widget
Add Pi Viator Affiliate — Live Listings to any widget area with a destination, keyword and result count.
Bounded Pagination
Turn on pagination per shortcode. Each paginated listing keeps its own independent, capped page count.
Drop Live Tours Into Any Page, Post Or Widget
One shortcode, many parameters. Replace the example destination with the correct Viator destination ID for your listing.
Destination grid
[pi_viator destination="479" limit="9" columns="3" pagination="yes"]
A three-column grid of nine experiences with bounded pagination.
Keyword list with campaign
[pi_viator destination="479" keyword="harbour" layout="list" campaign="harbour-tours"]
A list layout filtered by keyword, tagged with its own campaign code.
Top-rated & budget-friendly
[pi_viator destination="479" min_rating="4.5" max_price="150" sort="rating"]
Only highly rated experiences under your price ceiling, best first.
Travel dates & flags
[pi_viator destination="479" date_start="2027-01-10" date_end="2027-01-17" flags="FREE_CANCELLATION"]
Experiences available for a travel window, limited to free-cancellation products.
Filter Viator’s Catalogue Down To The Right Tours
Search by destination, attraction or keyword, then narrow by category, flags, price, rating, duration and travel dates. Preview real results inside WordPress before you publish anything.
[pi_viator destination="479" keyword="harbour" min_rating="4.5" sort="rating" limit="6"]
Preview, Copy, Publish—No Guesswork
The Shortcode Builder runs your search against the API, shows the cards visitors will see and gives you the exact shortcode to paste. Destinations are never guessed from your domain name.
- Destination ID, attraction ID or free-text keyword search
- Searchable Viator category picker, loaded from the global taxonomy
- Five product flags, such as free cancellation and skip-the-line
- Price, rating (0–5) and duration (in minutes) ranges
- Travel dates, six sort orders and per-listing currency, language and campaign
| Shortcode parameter | What it does |
|---|---|
destination | Numeric Viator destination ID for your listing. |
keyword | Product-only free-text search. |
tags / flags | Numeric category IDs and supported product flags. |
min_price / max_price | Price range in the selected currency. |
min_rating | Minimum traveller rating from 0 to 5. |
min_duration / max_duration | Duration range in minutes. |
date_start / date_end | Travel dates as YYYY-MM-DD; supply both. |
sort | recommended, price_asc, price_desc, rating, duration or newest. |
limit / columns | 1–50 results per page and 1–4 desktop columns. |
layout / pagination | grid, grid-2, grid-4, list or masonry; pagination yes or no. |
currency / language / campaign | Override the API defaults for this listing. |
title / description | Optional heading and a yes/no description excerpt. |
Place Listings Where Travellers Already Read
Skip the copy-and-paste. Assign a live search to a page, or let the plugin add a grid to every post or page of the content types you choose—each with its own query, fields and styles.
Shortcode & Widget
Full control, placed exactly where you want it in any page, post or shortcode-enabled widget area.
ManualDisplay on Pages
Attach an independent live search to a published page, before or after your permanent guide content.
Per pageAutomatic Placement
Add a contextual grid to selected public content types—by shared query, slug keyword or location term.
Per content type| Page | Position | Search |
|---|---|---|
| Harbour City Guide | After | destination 479 |
| Blue Mountains Day Trips | Before | keyword “mountains” |
| Weekend Itineraries | After | rating ≥ 4.5 |
Wrap Your Guides In Live Bookable Experiences
Write the guide once and let the plugin keep the experiences fresh. Every assignment stores only its configuration—never product records—and uses the same field and style controls as shortcodes.
- Choose any published page and a position before or after the content
- Each assignment has its own destination, keyword and filters
- Edit or remove assignments at any time; caches clear automatically
- Business and Developer can warm up to five of these searches
/harbour-city/City Highlights Walk
Harbour Cruise
One Setup, A Grid On Every Location Page
Choose the public content types that get a grid, then decide how each page finds its experiences. Missing or ambiguous terms fall back to your shared query.
- Shared query — the same search everywhere
- Page or post slug — a keyword from the slug, ideal for location landing pages
- Location taxonomy — a single assigned term from a public taxonomy
- Skip content that already has a manual shortcode
- Optional saved latitude, longitude and postcode metadata ranks a bounded shortlist by verified meeting points
piv_automatic_query, piv_automatic_area_labels, piv_location_context and piv_price_prefix filters. There are no domain checks, theme helper dependencies or preset destination rules in the plugin.
Make Every Listing Match Your Theme
Pick the layout, choose which fields appear and style the cards with colour pickers and sliders—with a live preview beside the settings. The same styles apply to shortcodes, widgets and page assignments.
Guided Experience
Book Now ↗See The Result Before You Save
The Display Styles tab shows a live card preview next to the controls, so you can match your brand without touching CSS.
- Card background, border colour, radius, thumbnail height and gap
- Title and meta colour and size
- Booking button background, text colour and radius
- Separate tablet and desktop column counts
- Choose fields: image, duration, description, price and button
Grid
One to four configurable columns.
Grid — 2 columns
Roomy cards for long descriptions.
Grid — 4 columns
Compact, browsable collections.
List
Image beside details, ideal for guides.
Masonry
Staggered cards that fit any image ratio.
Tablet columns
Set 1–3 columns for mid-size screens.
Field toggles
Show or hide each card detail.
Button text
Say Book Now, View Tour or your own words.
Affiliate disclosure
An editable notice under each grid.
Fast Pages, Fewer API Calls
Search results and rendered listing HTML are cached—each filter combination and page gets its own entry. Request budgets, a mutex and provider cooldowns keep your site comfortably inside API limits.
| Group | Hits | Misses | Stores | Errors |
|---|---|---|---|---|
| Live API results | 412 | 38 | 38 | 0 |
| Listing HTML | 655 | 41 | 41 | 0 |
Two Cache Layers
Cache the API result and the rendered card HTML. HTML never outlives the result it was built from.
Request Protection
A site-wide requests-per-minute budget, a request mutex and provider cooldowns; failed responses are briefly cached.
Bounded Storage
Search, HTML and location caches are each capped at 200 entries, and the category taxonomy refreshes weekly.
Inspect & Manage
View or delete cached entries, read hit and miss metrics, and bypass caches as an admin with ?piv_nocache=1.
Scheduled Cache Warming For Your Busiest Pages
Keep up to five Display on Pages searches warm every 15 minutes, so the first visitor after a quiet spell still sees a fast, fully populated listing. Warming uses the same cache and API request budget, with a Warm Now button and a last-run report.
Seven Tabs. Everything In One Place.
PI Viator Affiliate adds one tidy settings screen to WordPress. Tabs remember where you were, and every save clears the right caches for you.
License Key
Save and activate your PI licence for this domain, check or update it, or deactivate it when you move.
- Edition shown in the header
- Twice-daily revocation check
API Settings
Connect your Viator Partner API token and set the defaults for every listing.
- Sandbox or Production environment
- Default currency, language, campaign
- Test API Key and last request status
Live Listings
Everything about what appears on your pages and how it looks.
Shortcodes & Widget
A complete parameter reference, the widget guide and the interactive builder.
Caching
Control expiry and request budgets, then inspect cache metrics and individual entries.
- View, delete or flush entries
- Hits, misses, stores and errors
Advanced
Edition-specific tools for growing sites and developers.
Help & Support
Guided Quick Start journeys and a support tab with environment information to copy.
Viator Documentation
Quick links in the plugin header to Viator’s implementation guide and Partner API reference.
Credentials Stay Server-Side, Bookings Stay On Viator
Your Viator token is encrypted at rest and used only on your server. The plugin keeps no product catalogue, reviews or checkout, so there is less to secure and less to explain.
Encrypted API token
Stored with AES-256-GCM using your WordPress authentication salts. Leave the field blank to keep it, or remove it any time.
Server-side requests
The token is sent from your server to Viator. No public proxy endpoint is exposed to visitors.
No stored catalogue
No import engine, product posts, reviews or checkout—only temporary caches that you control.
Sponsored, new-tab links
Booking links use rel="sponsored noopener noreferrer" and open in a new tab.
Choose The Licence For Your WordPress Sites
Every licence includes the complete live-listing feature set. Business and Developer add scheduled cache warming and more licensed domains. You will need your own Viator Partner API token to display listings.
Launch Your Listings
For one travel site that needs live Viator experiences, page assignments and automatic placement.
- Live Viator search by shortcode, widget & Display on Pages
- Shortcode Builder with live API preview
- Automatic Placement by content type & location
- Grid, list & masonry display styles with live preview
- Result & listing HTML caching with metrics
- Tracked booking links with your campaign code
- Server-verified licence activation
Run Multiple Sites
For publishers growing a network of destination, events and travel sites.
- Everything in Standard
- More licensed domains for your network of sites
- Scheduled cache warming for up to five Display on Pages searches
- Warm Now button with last-run status
- One licence key, server-verified per domain
Deliver For Clients
For agencies and developers building Viator-powered travel sites for clients.
- Everything in Business
- The most licensed domains for client work
- Scheduled cache warming on every client site
- Developer reference: constant, theme filters & API routes
- One licence key, server-verified per domain
| Feature | Standard | Business | Developer |
|---|---|---|---|
| Licensed domains | 1 | 5 | 10 |
| Live Viator search: destination, attraction & keyword | ✓ | ✓ | ✓ |
| Filters: categories, flags, price, rating, duration & travel dates | ✓ | ✓ | ✓ |
| Shortcode Builder with live API preview | ✓ | ✓ | ✓ |
| [pi_viator] shortcode & Live Listings widget | ✓ | ✓ | ✓ |
| Display on Pages assignments (before or after content) | ✓ | ✓ | ✓ |
| Automatic Placement by content type, slug or location term | ✓ | ✓ | ✓ |
| Geo-aware ranking from saved coordinates or postcode | ✓ | ✓ | ✓ |
| Grid, 2-col, 4-col, list & masonry layouts | ✓ | ✓ | ✓ |
| Display Styles with live preview & field toggles | ✓ | ✓ | ✓ |
| Sandbox & Production environments with API key test | ✓ | ✓ | ✓ |
| 35 currencies & 36 language locales | ✓ | ✓ | ✓ |
| Campaign codes & editable affiliate disclosure | ✓ | ✓ | ✓ |
| Result & listing HTML caching with metrics | ✓ | ✓ | ✓ |
| Request budget, mutex & provider cooldown protection | ✓ | ✓ | ✓ |
| Theme integration filters & developer reference | ✓ | ✓ | ✓ |
| Scheduled cache warming (up to five searches) | — | ✓ | ✓ |
| Server-verified licence activation | ✓ | ✓ | ✓ |
| Buy PI Viator Affiliate |
Secure checkout
|
Secure checkout
|
Secure checkout
|
Tours for California’s cities, counties and regions
Events in California uses PI Viator Affiliate to add relevant tours and attractions to its destination and event pages. Travellers can explore experiences alongside the local guide and book through Viator.
Visit Events in CaliforniaBefore You Connect Viator
Do I need my own Viator account and API token?
Yes. No customer API token or affiliate ID is bundled. You save the Viator Partner API token issued to you, choose the matching Production or Sandbox environment and use the Test API Key button on the same tab to confirm the connection.
Does the plugin import tours into WordPress?
No. Experiences are fetched live from Viator for the search you configure. There is no import engine, stored product catalogue, review system or checkout—only temporary caches you can inspect, flush or switch off.
Where do visitors book?
On Viator. Each card links to the tracked product URL returned by the API, opens in a new tab and is marked rel="sponsored". The plugin never handles payment or bookings itself.
Can I show listings without writing a shortcode?
Yes. Use Display on Pages to attach a live search to a published page before or after its content, use Automatic Placement to add a grid to chosen public content types, or add the Live Listings widget to a widget area. The shortcode and Shortcode Builder remain available for exact placement.
How does Automatic Placement choose a location?
You pick one source: a shared query, a keyword taken from each page or post slug, or a single assigned term from a public location taxonomy. Missing or ambiguous terms fall back to the shared query. Slug matching is intended for location landing pages—arbitrary titles are not reliable locations. Optional saved latitude, longitude and postcode metadata can rank a bounded shortlist.
Will it slow my site or exceed API limits?
Result and listing-HTML caching are on by default, with configurable expiry from one minute to one hour. A site-wide request budget, a request mutex and provider cooldowns limit outbound calls. On a busy cold cache a grid may be omitted briefly, and any full-page or CDN cache in front of WordPress needs its own expiry and purge policy.
Are prices always up to the minute?
Prices come from the API when a result is fetched and then stay in cache until it expires. Shorten the expiry for fresher figures or lengthen it for fewer requests. No stale-price guarantee is provided, and final prices are always confirmed on Viator.
Which licence should I choose?
Every tier includes the same listing, placement, styling and caching features. Choose Standard for a single site, Business for a network of sites that benefits from scheduled cache warming, or Developer for agencies building sites for clients. Only the licensed-domain count and the scheduled-warming availability differ.
How is the licence activated?
Save your key in the License Key tab and click Activate License. The licence server confirms the product and your domain. Search and cached results require a valid activation for the local domain, revocation checks run twice daily, and deactivating clears scheduled plugin jobs while keeping your saved settings.
Which currencies and languages are supported?
35 currencies, including AUD, CAD, EUR, GBP, JPY, NZD, SGD, USD and ZAR, and 36 language locales covering regional English plus Danish, Dutch, Norwegian, Spanish, Swedish, French, Italian, German, Portuguese and Japanese. Set defaults once and override them per shortcode.
Is PI Viator Affiliate made or endorsed by Viator?
No. It is an independent plugin from PI Media that uses the Viator Partner API with your own credentials. Viator and related names are trademarks of their respective owners.
Social Proof, Published With PI Testimonials
A live selection of real feedback about PI Viator Affiliate—collected, moderated and displayed with PI Testimonials.
Everything A Travel Site Needs To Turn Readers Into Bookers
From a single destination guide to a network of location pages, PI Viator Affiliate scales with the way you publish travel content.
Always current
Listings come from the Viator API, so your pages never depend on hand-copied links or screenshots.
Right place, right page
Page assignments and automatic placement match experiences to each destination you cover.
Looks like your site
Colours, radius, spacing and layouts are set with controls and a live preview—no custom CSS needed.
Fast and polite
Caching, request budgets and optional warming keep pages quick and API usage sensible.
Works, until it doesn’t.
Static links and copied descriptions are quick to start with, but they age with every page you publish.
Live, filtered and on-brand.
Describe what you want to show once and let the plugin fetch, cache and render current experiences wherever you place it.
Get More Bookings From Every Destination Page
Guides, strategies and tutorials for planning, placing and measuring Viator affiliate listings with PI Viator Affiliate.
Start with a destination ID
Enter your Viator destination ID in the Shortcode Builder first, preview the results, then narrow with keywords and filters until the grid fits your guide.
Use a campaign per page
Give shortcodes their own campaign codes—letters, numbers and dashes—so you can tell which guide or placement sends the most travellers to Viator.
Wrap evergreen guides
Keep your permanent guide content untouched and let Display on Pages add fresh experiences before or after it—no re-editing when offers change.
Questions About Licences Or Setup? We Can Help.
Ask about licences, connecting your Viator API token, placement strategies, caching or custom implementation.
Replies Monday–Friday
Send Us a Message
We’ll reply as soon as we can.






