On a travel site with many city, county and attraction pages, manual configuration can become a bottleneck. PI Viator Affiliate can append a listing to eligible WordPress content types and adapt its search using context from the page. You still need a sensible default and a naming or taxonomy structure the plugin can read. This guide explains how to set those rules, how to test them on pages from different locations, and how to keep an automatic setup from interfering with the work of your editors.
Explore the PI Viator Affiliate WordPress plugin for automatic placement, location matching and per-page overrides.
Pick an eligible content type
Open Live Listings, then Automatic Placement. Select only the public content types that should receive a grid. A site that maintains city guides as pages and festival listings as posts can test the types separately before enabling both. Enter the shared search settings, including a destination if you want to bound the results geographically, and choose the heading and columns. The plugin normally appends the listing after the main content on eligible singular views. Review a real example after saving because a custom theme can render part of a page outside that content area. Uncheck the selected types if you need to turn the rule off.
Choose the right source of location context
Use Shared query when every selected page can recommend the same regional inventory. Choose the slug mode when location pages consistently use place-name slugs that can become searchable keywords. A slug such as santa-monica can become a useful place phrase, while an event slug that includes a performer and a date can make a poor tour query. Use the taxonomy mode when the site already assigns clear location terms. Enter the public taxonomy slug, then test a page with one matching term. Missing or ambiguous terms fall back to the shared query. That makes fallback settings as important as the dynamic rule itself.
Put real limits around local recommendations
A regional destination ID can keep keyword searches focused on the intended area. Within a region, an exact place name can narrow results but may still match a tour that passes through several locations. Review the page heading and avoid implying that every result starts in the city. On a site with stored coordinates or postcodes, the plugin can use available data to rank some candidates by verified meeting points or itinerary locations. Its search still works from a bounded shortlist. Check example outputs before advertising the listing as nearby, and keep the meeting-point or tour-stop labels intact when location details appear.
Test different editorial cases
Choose a city page that should show local options, a county page with a broader range, and an event or attraction page that might have less obvious location metadata. Inspect both the headings and the cards. Try one page with a missing term to confirm that the default outcome is acceptable. On a site with multiple regions that share city names, use appropriately bounded searches or a theme integration rather than relying on slug text alone. As an editor, you can still use a custom shortcode or assignment for pages that deserve an exception. Keep tests small so you can tell which rule supplied each listing.
Keep manually curated guides in charge
Enable the option that skips automation where you have added a listing manually, if that arrangement fits the site. A Christmas guide with its own seasonal query and a featured attraction page with a custom ticket search are good examples. Let the automatic system cover general locations and let those special pages keep their editorial choices. Save the rule and check an example of each type. If the manually curated page still shows multiple grids, inspect its template and content for another directly embedded shortcode or assignment. Change one layer at a time so you can confirm which output disappeared and which one readers still see.
Extend location logic when the theme needs it
A developer can use the plugin’s automatic query and location-context filters to map a custom region tree or location metadata. Keep the site-specific mapping in the theme or a site integration so the plugin can be updated as a general product. An integration could read a city term, decide whether the destination needs a different ID and set a better section heading. Validate that the selected place belongs to the intended region. Return a usable shared query if your data is incomplete. Test representative public pages from each part of the hierarchy and keep a short note about which metadata fields the integration reads.
Monitor the rollout
Start with a modest result count and track cache behaviour on the most useful pages. A large number of distinct location queries can generate more requests than a single shared region query. Use the caching tab to observe which entries are reused, and check any page cache that may hold an outdated listing during rollout. Verify the booking path and disclosure after changing how a group of pages is matched. When readers get a shortlist that reflects their current destination, the listing acts as a natural continuation of the guide. For the most important pages, periodic editorial review still gives users the clearest choice of bookable experiences.







