An itinerary about harbour cruises, a neighbourhood guide and a museum page call for different kinds of listings. A single broad city search may display excellent experiences while missing the reason readers came to a particular page. PI Viator Affiliate’s Shortcode Builder gives WordPress editors a way to shape a query, preview the cards and place the generated shortcode exactly where it supports the article. The Reference & Widget subtab explains the available controls. Start with one narrow editorial goal, then use the search controls to translate that goal into a list readers can book through Viator.
Explore the PI Viator Affiliate WordPress plugin for the shortcode builder, widget and live previews used in this guide.
Begin with an identifiable destination
A destination ID gives your query a geographic starting point. Use the ID from Viator for the city or region you want, then preview a broad search and confirm the results are recognisable. Destination IDs are numeric and should be checked against the place you intend to market. A keyword can narrow an existing destination or run a product search on its own. A phrase such as harbour cruise can be useful inside a city destination because the geographic filter and the reader’s interest work together. Generic terms without a destination can surface results across locations when geography is central to the page.
Find the right filter for the page’s promise
Use a category when you need a repeatable group of experiences, such as day trips or bus tours. The category picker helps translate labels into Viator tag IDs. Preview the results before assuming a category is useful in a given destination. Add flags when the attribute is important to the reader, such as a private tour. Price ranges, minimum rating, duration and travel dates can further shape the shortlist. Select a sort order that serves the goal: duration for a short visit, ascending price for budget browsing, or recommended for a general guide. When you assign several filters at once, the preview helps reveal whether the combination is too restrictive.
Handle a specific attraction carefully
An attraction page can use a numeric Viator attraction ID together with a destination ID. Leave the keyword blank for that type of query. It is designed to find experiences associated with the attraction, which might include admission, guided tours or combination tickets. Read product titles and descriptions before placing the grid. An experience that passes an attraction can be perfectly valid in search results and still be wrong for a reader looking to go inside. If that distinction matters, introduce the grid with a sentence encouraging readers to check the itinerary and inclusions before booking. Keep any historical or admission information in your own editorial content.
Copy and publish a small test listing
Open Shortcode Builder, set the desired result count and choose Search & Preview. Inspect the first few cards, copy the generated shortcode, and insert it into a dedicated Shortcode block. A destination-only example is [pi_viator destination="479" limit="9" columns="3"]. Replace the sample destination with the one for your page. For a smaller panel at the end of a story, start with six results and skip pagination. For a dedicated tour index, try fifteen per page with pagination enabled. Check the WordPress preview and visit the public URL to catch issues introduced by the theme, page builder or site cache.
Decide when to paginate
A long dedicated browsing page benefits from more choices, but a short guide usually needs a curated first page and strong editorial context. With pagination enabled, each listing receives its own controls for navigating results. The Live Listings Settings tab limits how far those controls can go. If you have two lists on one page, test each set of controls separately and verify that changing one list leaves the other in the expected state. When deeper pages repeat popular results or become less relevant, shorten the maximum page count. A concise, coherent shortlist can be more useful to a reader than several pages of loosely related products.
Use the widget for a compact placement
The Viator widget is suited to themes with a registered widget area. Add it to a relevant sidebar or equivalent area and configure its title, destination or keyword, and result count. Start with a small count because a sidebar is often narrower than the content column, and some responsive themes move it below the article. Use a shortcode when you need more control over the query or the position inside the content. Avoid running two near-identical listings in the same view unless they serve different tasks. One contextual grid can make the next booking step clearer than repeated opportunities competing for attention.
Give the listing an editorial job
Write a heading that tells readers what the tours have in common. A family guide could introduce short, flexible experiences after the itinerary and reserve full-day tours for a separate page. A transport article might focus on hop-on hop-off services and link to a broader city tour directory. Rerun a preview after substantial edits to a high-traffic guide, especially when you add a date or tighten a price range. The shortcode is a reusable search specification. Its value comes from joining a clear visitor need with the experiences the API currently returns for it.







