Home Collection Blocks

Collection Blocks

Documentation for collection blocks that display lists of content
By Dustin Grof
11 articles

Challenges

Challenges Block The Challenges block displays a collection of challenges from your Tourismo admin platform. It's designed for collection pages where you want to showcase challenges with filtering, rewards, and detailed challenge information. Overview The Challenges block is ideal for: - Challenge listing pages - Tourism websites showcasing local challenges - Business directories with challenge calendars - Regional challenge hubs - Festival and conference websites Block Features & Options Display Modes - Grid Layout: Default card-based grid display - Carousel Layout: Horizontal scrolling carousel (via template override) Layout Options - Show Image: Display challenge hero images (default: enabled) - Show Name: Display challenge titles (default: enabled) - Show Dates: Display challenge scheduling information (default: enabled) - Show Rewards: Display challenge rewards information (default: enabled) - Show Description: Display challenge descriptions with "Read More" link (default: enabled) Content & Filter Options - Show Tags: Display challenge tags/categories - Tag Filters: Filter challenges by specific tags - Tag Category: Filter by tag category - Match Records By Tag Category: Enable tag category matching - Filter Records By Region: Filter challenges by region (default: enabled) - Selected Region ID: Manually select a specific region to filter by (string; only available when not on region/itinerary/listing/event pages) Display Toggles - Custom Template Name: Use custom template override - Button Text: Customize "Read More" button text (default: "Explore") - Alignment: Full-width alignment support How it Works The Challenges block fetches challenges from your Tourismo admin platform and displays them in a responsive grid layout. Challenges are automatically sorted by featured status and start date. The block supports interactive filtering, reward detection, and region-based filtering. Region / Guide Filtering: - On region pages: Automatically filters by the current region; children/parents/lineage modes are available - On guide pages: Automatically filters with filter[guide_id] — challenges with tasks targeting listings/events in the guide (bounds + shared tags), or the guide itself. Hierarchy modes are hidden; this is guide membership, not region-target filtering - On itinerary/listing/event pages: Automatically filters by the associated region - On other pages: Manually select a region or guide - Manual override: Selecting a specific region or guide always takes precedence Filtering Modes When filter_records_by_region is enabled, the sidebar Filtering Mode dropdown maps to region_filtering_mode / selected_region_id. On Single Region pages (and other non-guide automatic context) | Mode | Description | Shortcode value | | --- | --- | --- | | Use current page region (automatic) | Uses only the current page's region | "" (attribute omitted) | | Use current region and children (descendants) | Current region plus every descendant | "current-and-children" | | Use current region and parents (ancestors) | Current region plus every ancestor | "current-and-parents" | | Use current region and entire lineage | Ancestors, current region, and descendants | "current-and-lineage" | | Select a specific region or guide | Exact pick; ignores automatic context | Set selected_region_id | On Single Guide pages | Mode | Description | Shortcode value | | --- | --- | --- | | Use current guide (automatic) | Guide membership via filter[guide_id] (tasks on guide listings/events, or the guide itself) | "" (attribute omitted) | | Select a specific region or guide | Exact pick; ignores automatic context | Set selected_region_id | Guide vs region: On guide pages, filtering uses guide membership (same bounds + tags idea as listings/events), not region hierarchy or target_type: Region. Hierarchy modes are not offered on guide pages. Manual selections always clear region_filtering_mode and work on any page. How to Add & Configure 1. Add the Challenges block to a collection page (not a template page) 2. Configure the Linked Page: Select a challenge template page for individual challenge details 3. Set Display Options: Choose which challenge information to show 4. Configure Filters: Set up tag and region filtering as needed 5. Customize Layout: Adjust image display and content visibility Shortcode Usage Basic Shortcode [tourismo-challenges] Complete Options Table | Option | Type | Default | Description | |--------|------|---------|-------------| | linked_page_id | string | "" | Required - ID of the challenge template page | | custom_template_name | string | "" | Custom template override name | | tag_filters | array | [] | Array of tag IDs to filter by | | tag_category | string | "" | Tag category to filter by | | match_records_by_tag_category | boolean | false | Enable tag category matching | | filter_records_by_region | boolean | true | Filter challenges by region or guide | | selected_region_id | string | "" | Manually select a region or guide to filter by | | region_filtering_mode | string | "" | Region hierarchy modes when automatic region context applies (current-and-children, current-and-parents, current-and-lineage). Not used on Single Guide pages (automatic guide targeting only). | | class_name | string | "" | Additional CSS classes | | align | string | "" | Block alignment | | button_text | string | "Explore" | Custom button text | | show_image | boolean | true | Display challenge images | | show_name | boolean | true | Display challenge names | | show_dates | boolean | true | Show challenge dates and times | | show_rewards | boolean | true | Display challenge rewards | | show_description | boolean | true | Display challenge descriptions | | show_tags | boolean | false | Display challenge tags | | show_stats | boolean | false | Load stats onto each card after page load | | stats_category | string | "" | Stats category slug (blank = summary) | Practical Examples Basic Challenges Display [tourismo-challenges linked_page_id="123"] Challenges with Manual Region Selection [tourismo-challenges linked_page_id="123" filter_records_by_region="true" selected_region_id="5"] Current Region Plus Descendants [tourismo-challenges linked_page_id="123" filter_records_by_region="true" region_filtering_mode="current-and-children"] Filtered Challenges by Tags [tourismo-challenges linked_page_id="123" tag_filters='["45", "67"]' show_tags="true"] Custom Template Challenges [tourismo-challenges linked_page_id="123" custom_template_name="challenges-carousel"] Content Displayed The Challenges block displays: - Challenge Cards: Each challenge appears in a responsive card layout - Challenge Images: Hero images with aspect ratio 1:1 (when enabled) - Challenge Information: Name, dates, rewards, description - Tags: Challenge categories and classifications (when enabled) - Reward Indicators: Reward information for challenges (when enabled) Challenges are automatically sorted by featured status (featured first) and then by start date (earliest first). Related Blocks - Challenge Block - Individual challenge display for template pages - Itineraries Block - Display itinerary collections - Listings Block - Display business/attraction listings - Regions Block - Display region collections - Map Block - Interactive map display

Last updated on Aug 13, 2026

Dmo Itineraries

DMO Itineraries Block The DMO Itineraries block displays itineraries from Destination Marketing Organizations (DMOs) that are connected to your Tourismo admin platform. This block shows itineraries from various tourism platforms with their logos, descriptions, and direct links to the full itineraries. Overview The DMO Itineraries block is designed for tourism websites that want to showcase itineraries from multiple platforms. It displays itineraries with platform branding, allowing visitors to discover and book experiences from various DMO partners. This block is ideal for regional tourism sites, visitor bureaus, or destination marketing organizations. Block Features & Options Display Modes - Grid Layout: Display itineraries in a responsive grid with customizable columns - Carousel Layout: Show itineraries in a sliding carousel format Layout Options - Columns: Choose from 1-6 columns or "Auto" to display all in one row (grid only) - Grid Gap: Set spacing between grid items - Border Radius Controls: Customize border radius for platform logos, overlays, and grid items Content & Filter Options - Itinerary Visibility: Toggle individual itineraries on/off in the block editor - Filter by IDs: Specify specific itinerary IDs to display (for shortcode usage) Display Toggles - Show/Hide Names: Control visibility of itinerary titles - Custom Template: Override default template with custom template name How it Works The DMO Itineraries block connects to your Tourismo admin platform using the DMO Partner API key to fetch itineraries from connected platforms. It displays active itineraries with platform branding, including logos, descriptions, and direct links to the full itineraries on the original platforms. How to Add & Configure 1. Add the Block: In the WordPress editor, add the "DMO Itineraries" block to your page 2. Configure Layout: Choose between Grid or Carousel display mode 3. Set Columns: For grid layout, select the number of columns (1-6 or Auto) 4. Adjust Styling: Customize border radius and grid gap settings 5. Manage Visibility: Use the "Itinerary Visibility Settings" panel to show/hide specific itineraries 6. Preview: The block will display sample data in the editor and live data on the frontend Shortcode Usage Basic Shortcode [tourismo-dmo-itineraries] Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | view_type | string | "grid" | Display mode: "grid" or "carousel" | | columns | string | "3" | Number of columns (1-6) or "auto" for grid layout | | grid_gap | string | "1rem" | Spacing between grid items | | platform_logo_border_radius | string | "5px" | Border radius for platform logos | | overlay_border_radius | string | "10px" | Border radius for content overlays | | grid_item_border_radius | string | "0" | Border radius for grid items | | filter_by_ids | string | "" | Comma-separated list of itinerary IDs to display | | custom_template_name | string | "" | Custom template name for template overrides | Shortcode Examples Basic Grid Display [tourismo-dmo-itineraries view_type="grid" columns="4"] Carousel with Custom Styling [tourismo-dmo-itineraries view_type="carousel" platform_logo_border_radius="10px" overlay_border_radius="15px"] Filter Specific Itineraries [tourismo-dmo-itineraries filter_by_ids="123,456,789"] Custom Template [tourismo-dmo-itineraries custom_template_name="my-custom-dmo-itineraries"] Content Displayed The DMO Itineraries block displays: - Platform Logos: Branded logos from each tourism platform - Itinerary Titles: Custom subtitles or default "Discover more about this itinerary" - Trip Details: Number of stops and days for each itinerary - Descriptions: Short descriptions of the itineraries - Direct Links: Links to the full itineraries on the original platforms - Hero Images: Background images for each itinerary (if available) Layout Options Grid Layout: Responsive grid with customizable columns and spacing Carousel Layout: Sliding carousel with navigation controls Related Blocks - Itineraries Block - Display your own itineraries - Listings Block - Show business listings - Events Block - Display events and activities - Regions Block - Show regional information

Last updated on Sep 16, 2025

Dmos

DMOs Block The DMOs block displays a collection of Destination Marketing Organizations (DMOs) in either a grid or carousel layout. This block is typically used on collection pages to showcase tourism organizations and their information. Overview The DMOs block fetches and displays DMO data from your Tourismo admin platform. It can show DMOs from a specific region when used on region template pages, or display all DMOs when used on other page types. The block automatically filters out the current DMO when used on a DMO template page. Block Features & Options Display Modes - Grid Layout: Displays DMOs in a responsive grid with configurable columns (1-4) - Carousel Layout: Displays DMOs in a sliding carousel with automatic navigation Layout Options - Columns: Choose 1, 2, 3, or 4 columns for grid layout - Alignment: Left, center, or right alignment options - Custom CSS Class: Add custom styling classes Content & Display Options - Show Image: Display DMO logo images (enabled by default) - Show Name: Display DMO organization names (enabled by default) - Show Description: Display DMO descriptions (disabled by default) - Show Tags: Display DMO tags/categories (disabled by default) How it Works The DMOs block queries the Tourismo Platform API to fetch DMO data based on the current page context. When used on a region template page, it shows DMOs from that specific region. On other page types, it displays all available DMOs. The block automatically excludes the current DMO when used on a DMO template page to avoid redundancy. How to Add & Configure 1. Add the Block: In your collection page, add the "DMOs" block from the Itinerator blocks category 2. Choose Layout: Select either "Grid" or "Carousel" from the Layout dropdown 3. Configure Grid Options: If using grid layout, choose the number of columns (1-4) 4. Set Display Options: Toggle which content elements to show (image, name, description, tags) 5. Customize Styling: Add custom CSS classes or alignment as needed Shortcode Usage Basic Shortcode [tourismo-dmos] Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | view_type | string | grid | Layout type: grid or carousel | | columns | string | 3 | Number of columns for grid layout (1-4) | | show_image | boolean | true | Display DMO logo images | | show_name | boolean | true | Display DMO organization names | | show_description | boolean | false | Display DMO descriptions | | show_tags | boolean | false | Display DMO tags/categories | | show_stats | boolean | false | Load stats onto each card after page load | | stats_category | string | '' | Stats category slug (blank = summary) | | align | string | '' | Block alignment: left, center, right | | class_name | string | '' | Custom CSS class name | Practical Examples Grid layout with 2 columns, showing all content: [tourismo-dmos view_type="grid" columns="2" show_image="true" show_name="true" show_description="true" show_tags="true"] Carousel layout with minimal content: [tourismo-dmos view_type="carousel" show_image="true" show_name="true" show_description="false" show_tags="false"] Centered grid with custom styling: [tourismo-dmos view_type="grid" columns="4" align="center" class_name="my-custom-dmos"] Content Displayed The DMOs block displays the following content for each DMO: - Logo Image: DMO organization logo (if available and enabled) - Organization Name: DMO name as a clickable link to their website - Description: DMO description text (if available and enabled) - Tags: DMO categories/tags as styled badges (if available and enabled) The block uses card-based layouts with consistent styling that integrates with your theme's design system. Images are displayed in a contained format to maintain aspect ratios, and missing images show a placeholder message. Related Blocks - Regions Block: Display geographic regions that contain DMOs - Listings Block: Show business listings managed by DMOs - Events Block: Display events organized by DMOs - Itineraries Block: Show itineraries created by DMOs

Last updated on Aug 13, 2026

Events

Events Block The Events block displays a collection of events from your Tourismo admin platform. It's designed for collection pages where you want to showcase upcoming events with filtering, date selection, and detailed event information. Overview The Events block is ideal for: - Event listing pages - Tourism websites showcasing local events - Business directories with event calendars - Regional event hubs - Festival and conference websites Block Features & Options Display Modes - Grid Layout: Default card-based grid display - Carousel Layout: Horizontal scrolling carousel (via template override) Layout Options - Show Image: Display event hero images (default: enabled) - Show Featured Status: Highlight featured events with star icon - Show Name: Display event titles (default: enabled) - Show Event Date/Times: Display event scheduling information (default: enabled) - Show Cost: Display event pricing information (default: enabled) - Show Description: Display event descriptions with "Read More" link (default: enabled) - Show Date Filter: Enable interactive date range filtering (default: enabled) Content & Filter Options - Show Phone: Display contact phone numbers - Show Email: Display contact email addresses - Show Website: Display event website links - Show Ticket Link: Display ticket purchase links - Show Tags: Display event tags/categories - Show Location: Display event venue information - Tag Filters: Filter events by specific tags - Tag Category: Filter by tag category - Match Records By Tag Category: Enable tag category matching - Filter Records By Region: Filter events by region (default: enabled) - Selected Region ID: Manually select a specific region to filter by (string; only available when not on region/itinerary/listing/event pages) Display Toggles - Custom Template Name: Use custom template override - Button Text: Customize "Read More" button text (default: "Explore") - Alignment: Full-width alignment support How it Works The Events block fetches events from your Tourismo admin platform and displays them in a responsive grid layout. Events are automatically sorted by featured status and start date. The block supports interactive date filtering, recurring event detection, and region-based filtering. Region / Guide Filtering: - On region pages: Automatically filters by the current region; children/parents/lineage modes are available - On guide pages: Automatically filters by guide membership (filter[guide_id] — events with locations inside the guide's bounds that share its tags). Hierarchy modes are hidden; parent regions are not included - On itinerary/listing/event pages: Automatically filters by the associated region - On other pages: Manually select a region or guide - Manual override: Selecting a specific region or guide always takes precedence Filtering Modes When filter_records_by_region is enabled, the sidebar Filtering Mode dropdown maps to region_filtering_mode / selected_region_id. On Single Region pages (and other non-guide automatic context) | Mode | Description | Shortcode value | | --- | --- | --- | | Use current page region (automatic) | Uses only the current page's region | "" (attribute omitted) | | Use current region and children (descendants) | Current region plus every descendant | "current-and-children" | | Use current region and parents (ancestors) | Current region plus every ancestor | "current-and-parents" | | Use current region and entire lineage | Ancestors, current region, and descendants | "current-and-lineage" | | Select a specific region or guide | Exact pick; ignores automatic context | Set selected_region_id | On Single Guide pages | Mode | Description | Shortcode value | | --- | --- | --- | | Use current guide (automatic) | Guide membership: bounds + shared tags (filter[guide_id]) | "" (attribute omitted) | | Select a specific region or guide | Exact pick; ignores automatic context | Set selected_region_id | Guide vs region: Guide membership is not the same as "events in the parent region." Hierarchy modes are not offered on guide pages because they describe region geography, not guide membership. Manual picks always reset region_filtering_mode and can be used on any page. How to Add & Configure 1. Add the Events block to a collection page (not a template page) 2. Configure the Linked Page: Select an event template page for individual event details 3. Set Display Options: Choose which event information to show 4. Configure Filters: Set up tag and region filtering as needed 5. Enable Date Filter: Turn on interactive date range selection 6. Customize Layout: Adjust image display and content visibility Shortcode Usage Basic Shortcode [tourismo-events] Complete Options Table | Option | Type | Default | Description | |--------|------|---------|-------------| | linked_page_id | string | "" | Required - ID of the event template page | | custom_template_name | string | "" | Custom template override name | | tag_filters | array | [] | Array of tag IDs to filter by | | tag_category | string | "" | Tag category to filter by | | match_records_by_tag_category | boolean | false | Enable tag category matching | | filter_records_by_region | boolean | true | Filter events by region or guide | | selected_region_id | string | "" | Manually select a region or guide to filter by | | region_filtering_mode | string | "" | Region hierarchy modes when automatic region context applies (current-and-children, current-and-parents, current-and-lineage). Not used on Single Guide pages (automatic guide membership only). | | class_name | string | "" | Additional CSS classes | | align | string | "" | Block alignment | | button_text | string | "Explore" | Custom button text | | show_image | boolean | true | Display event images | | show_featured_status | boolean | false | Show featured event indicators | | show_name | boolean | true | Display event names | | show_event_date_times | boolean | true | Show event dates and times | | show_cost | boolean | true | Display event costs | | show_phone | boolean | false | Show contact phone numbers | | show_email | boolean | false | Show contact email addresses | | show_website | boolean | false | Show event website links | | show_ticket_link | boolean | false | Show ticket purchase links | | show_tags | boolean | false | Display event tags | | show_location | boolean | false | Show event locations | | show_description | boolean | true | Display event descriptions | | show_date_filter | boolean | true | Enable date range filtering | | show_stats | boolean | false | Load stats onto each card after page load | | stats_category | string | "" | Stats category slug (blank = summary) | Practical Examples Basic Events Display [tourismo-events linked_page_id="123"] Events with Contact Information [tourismo-events linked_page_id="123" show_phone="true" show_email="true" show_website="true"] Filtered Events by Tags [tourismo-events linked_page_id="123" tag_filters='["45", "67"]' show_tags="true"] Manual Region Selection [tourismo-events linked_page_id="123" filter_records_by_region="true" selected_region_id="5"] Current Region Plus Parents [tourismo-events linked_page_id="123" filter_records_by_region="true" region_filtering_mode="current-and-parents"] Events with Date Filtering Disabled [tourismo-events linked_page_id="123" show_date_filter="false"] Custom Template Events [tourismo-events linked_page_id="123" custom_template_name="events-carousel"] Content Displayed The Events block displays: - Event Cards: Each event appears in a responsive card layout - Event Images: Hero images with aspect ratio 1:1 (when enabled) - Event Information: Name, dates, times, cost, description - Contact Details: Phone, email, website, ticket links (when enabled) - Location Information: Event venue details (when enabled) - Tags: Event categories and classifications (when enabled) - Featured Indicators: Star icons for featured events (when enabled) - Date Filter: Interactive date range selector (when enabled) - Recurring Event Indicators: Calendar icons for recurring events Events are automatically sorted by featured status (featured first) and then by start date (earliest first). Related Blocks - Event Block - Individual event display for template pages - Itineraries Block - Display itinerary collections - Listings Block - Display business/attraction listings - Regions Block - Display region collections - Map Block - Interactive map display

Last updated on Aug 13, 2026

Itineraries

Itineraries Block The Itineraries block displays a list, grid, or carousel of itineraries from your Tourismo content. Use it to create itinerary directories, featured sections, or itinerary carousels on your site. (For DMO-specific itineraries, use the DMO Itineraries block.) Overview Use the Itineraries block to: - Show a directory or catalog of available itineraries - Display itineraries in a two-column row, grid, or carousel format - Filter, sort, and customize which itineraries are shown - Add a featured itineraries section to your homepage or region pages - Filter by specific regions when not on a region/itinerary/listing/event page Block Features & Options Display Modes: - Row (Default): Two-column layout (image and content) - Grid (Badge): Multi-column card grid (set custom_template_name="badge") - Carousel: Horizontal slider (set custom_template_name="carousel") Layout Options: - align: Alignment of the block (left, center, right) - class_name: Custom CSS class for additional styling Content & Filter Options: - linked_page_id: ID of your itinerary template page (required for navigation) - custom_template_name: Use a custom template for display ("badge", "carousel", or your own) - tag_filters: Filter by specific tags - tag_category: Filter by tag category - match_records_by_tag_category: Match records by tag category (boolean) - filter_records_by_region: Filter itineraries by region (boolean) - selected_region_id: Manually select a specific region to filter by (string; only available when not on region/itinerary/listing/event pages) - sort_by: Sort order (e.g., "name", "default") - button_text: Text for the action button Display Toggles: - show_hero, show_name, show_subtitle, show_counts, show_region, show_short_description, show_description, show_tags, show_button, show_stats When Show Stats is on, cards fetch stats after the page loads. Leave Stats Category blank for the default summary (legs and stops), or enter a category slug such as summary_custom_bcat. Custom templates can call $this->render_stats_placeholder($record) to include the same mount. Override the mount in itinerator/partials/stats-itineraries.php (see Regions). How it Works - The block pulls itineraries from your Tourismo content and displays them in the selected format. - Filtering, sorting, and display options can be set in the block editor or via shortcode attributes. - The block is styled with .itin and .itinerator-itineraries classes for easy targeting. - Clicking an itinerary navigates to the linked template page (set via linked_page_id). Region / Guide Filtering: - On region pages: Automatically filters by the current region; children/parents/lineage modes are available - On guide pages: Automatically filters by guide membership (filter[guide_id] — itineraries whose stops/listings sit inside the guide's bounds and share its tags). Hierarchy modes are hidden; parent regions are not included - On itinerary/listing/event pages: Automatically filters by the associated region - On other pages: Manually select a region or guide - Manual override: Selecting a specific region or guide always takes precedence Filtering Modes When filter_records_by_region is enabled, the sidebar Filtering Mode dropdown maps to region_filtering_mode / selected_region_id. On Single Region pages (and other non-guide automatic context) | Mode | Description | Shortcode value | | --- | --- | --- | | Use current page region (automatic) | Uses only the current page's region | "" (attribute omitted) | | Use current region and children (descendants) | Current region plus every descendant | "current-and-children" | | Use current region and parents (ancestors) | Current region plus every ancestor | "current-and-parents" | | Use current region and entire lineage | Ancestors, current region, and descendants | "current-and-lineage" | | Select a specific region or guide | Exact pick; ignores automatic context | Set selected_region_id | On Single Guide pages | Mode | Description | Shortcode value | | --- | --- | --- | | Use current guide (automatic) | Guide membership: bounds + shared tags (filter[guide_id]) | "" (attribute omitted) | | Select a specific region or guide | Exact pick; ignores automatic context | Set selected_region_id | Guide vs region: Guide membership is not the same as "itineraries assigned to the parent region." Hierarchy modes are not offered on guide pages because they describe region geography, not guide membership. Manual selection always clears region_filtering_mode and works on any page. How to Add & Configure 1. Open the block editor on any page or post 2. Click the + button to add a new block 3. Search for "Itineraries" in the block inserter 4. Select "Itinerator Itineraries" from the results 5. Configure settings in the block sidebar Shortcode Usage Important: The linked_page_id attribute is required for correct navigation. Always include it in your shortcode. Basic Shortcode [tourismo-itineraries linked_page_id="YOUR_PAGE_ID"] With Options [tourismo-itineraries linked_page_id="YOUR_PAGE_ID" show_hero="true" show_name="true" show_button="true" align="center"] Shortcode Options | Attribute | Type | Default | Required | Description | |--------------------------|----------|-------------|----------|---------------------------------------------| | linked_page_id | string | "" | Yes | ID of your itinerary template page | | custom_template_name | string | "" | No | Use a custom template for display | | tag_filters | array | [] | No | Filter by specific tags | | tag_category | string | "" | No | Filter by tag category | | match_records_by_tag_category| boolean | false | No | Match records by tag category | | filter_records_by_region | boolean | true | No | Filter by region or guide | | selected_region_id | string | "" | No | Manually select a region or guide to filter by | | region_filtering_mode | string | "" | No | Region hierarchy modes when automatic region context applies (current-and-children, current-and-parents, current-and-lineage). Not used on Single Guide pages (automatic guide membership only). | | class_name | string | "" | No | Custom CSS class | | align | string | "" | No | Alignment (left, center, right) | | button_text | string | "Explore" | No | Text for the action button | | sort_by | string | "default" | No | Sort order | | show_hero | boolean | true | No | Show/hide hero images | | show_name | boolean | true | No | Show/hide itinerary name | | show_subtitle | boolean | false | No | Show/hide subtitle | | show_counts | boolean | true | No | Show/hide stop/day counts | | show_region | boolean | true | No | Show/hide region info | | show_short_description | boolean | false | No | Show/hide short description | | show_description | boolean | false | No | Show/hide full description | | show_tags | boolean | false | No | Show/hide tags | | show_button | boolean | true | No | Show/hide action button | | show_stats | boolean | false | No | Load stats onto each card after page load | | stats_category | string | "" | No | Stats category slug (blank = summary) | Examples Simple Itinerary List: [tourismo-itineraries linked_page_id="123" show_name="true" show_description="true" show_region="true" show_counts="true"] Grid (Badge) Example: [tourismo-itineraries linked_page_id="123" custom_template_name="badge" show_hero="true" show_name="true" show_button="true"] Carousel Example: [tourismo-itineraries linked_page_id="123" custom_template_name="carousel" show_hero="true" show_name="true" show_button="true"] Manual Region Selection: [tourismo-itineraries linked_page_id="123" filter_records_by_region="true" selected_region_id="3"] Current Region Plus Children: [tourismo-itineraries linked_page_id="123" filter_records_by_region="true" region_filtering_mode="current-and-children"] Region-Specific Itineraries: Note: Must be placed on a region template or other single page template. [tourismo-itineraries linked_page_id="123" show_short_description="true" filter_records_by_region="true"] Content Displayed - Itinerary name, subtitle, and hero image - Short and/or full description - Region information - Stop and day counts - Tags and categories - Featured status (property available on itinerary objects) - Action button (if enabled) Layout options: - Row (two column, default) - Grid (multi-column cards, set custom_template_name="badge") - Carousel (horizontal slider, set custom_template_name="carousel") Related Blocks - Itinerary – Display a single itinerary with map - Filter – Add content filtering - Title – Add section headers

Last updated on Aug 13, 2026

Listings

Listings Block The Listings block displays a directory, grid, or carousel of business listings from your Tourismo content. Use it to create business directories, featured listings sections, or listing carousels on your site. Overview Use the Listings block to: - Show a directory of businesses or locations - Display listings in directory, tile, or carousel format - Filter, sort, and customize which listings are shown - Add a listings section to region, city, or category pages - Filter by specific regions when not on a region/itinerary/listing/event page Block Features & Options Display Modes: - Directory (Alpha): Multi-column alphabetical list (viewType="alpha") - Tiles (Badge): Grid of cards (viewType="badge") - Carousel: Horizontal slider (viewType="carousel") Layout Options: - columns: Number of columns (1-4, default: 3; applies to grid/tile mode) - align: Alignment of the block (left, center, right, wide) - className: Custom CSS class for additional styling Content & Filter Options: - linkedPageId: ID of your listing template page (required for navigation) - viewType: Display style ("alpha", "badge", or "carousel") - tagFilters: Filter by specific tags - tagCategory: Filter by tag category - matchRecordsByTagCategory: Match records by tag category (boolean) - filterRecordsByRegion: Filter listings by region (boolean) - selectedRegionId: Manually select a specific region to filter by (string; only available when not on region/itinerary/listing/event pages) - listingType: Filter by main type (comma-separated string) - sortBy: Sort order (e.g., "name", "default") - buttonText: Text for the action button - customTemplateName: Use a custom template for display Display Toggles: - showImage, showName, showShortDescription, showDescription, showCity, showAddress, showSubtitle, showPhone, showEmail, showWebsite, showBookingLink, showTags, showRegion, showRelatedItineraries, showStats How it Works - The block pulls listings from your Tourismo content and displays them in the selected format. - Region / Guide Filtering: - On region pages: Automatically filters by the current region; children/parents/lineage modes are available - On guide pages: Automatically filters by guide membership (filter[guide_id] — listings inside the guide's bounds that share its tags). Hierarchy modes are hidden; parent regions are not included - On itinerary/listing/event pages: Automatically filters by the associated region - On other pages: Manually select a region or guide - Manual override: Selecting a specific region or guide always takes precedence Filtering Modes When filter_records_by_region is enabled, the sidebar Filtering Mode dropdown maps to region_filtering_mode / selected_region_id. On Single Region pages (and other non-guide automatic context) | Mode | Description | Shortcode value | | --- | --- | --- | | Use current page region (automatic) | Uses only the current page's region | "" (attribute omitted) | | Use current region and children (descendants) | Current region plus every descendant | "current-and-children" | | Use current region and parents (ancestors) | Current region plus every ancestor | "current-and-parents" | | Use current region and entire lineage | Ancestors, current region, and descendants | "current-and-lineage" | | Select a specific region or guide | Exact pick; ignores automatic context | Set selected_region_id | On Single Guide pages | Mode | Description | Shortcode value | | --- | --- | --- | | Use current guide (automatic) | Guide membership: bounds + shared tags (filter[guide_id]) | "" (attribute omitted) | | Select a specific region or guide | Exact pick; ignores automatic context | Set selected_region_id | Guide vs region: Guide membership is not the same as "listings in the parent region." A listing must sit inside the guide's polygon and share tags with the guide. Hierarchy modes (children/parents/lineage) are not offered on guide pages because they describe region geography, not guide membership. Manual picks always reset region_filtering_mode and remain available on any page. - Filtering, sorting, and display options can be set in the block editor or via shortcode attributes. - The block is styled with .itin and .itinerator-listings classes for easy targeting. - Clicking a listing navigates to the linked template page (set via linkedPageId). How to Add & Configure 1. Open the block editor on any page or post 2. Click the + button to add a new block 3. Search for "Listings" in the block inserter 4. Select "Itinerator Listings" from the results 5. Configure settings in the block sidebar Shortcode Usage Important: The linked_page_id attribute is required for correct navigation. Always include it in your shortcode. Basic Shortcode [tourismo-listings linked_page_id="YOUR_PAGE_ID"] With Options [tourismo-listings linked_page_id="YOUR_PAGE_ID" view_type="badge" columns="3" show_image="true" show_name="true" show_city="true" align="center"] Shortcode Options | Attribute | Type | Default | Required | Description | |--------------------------|----------|-------------|----------|---------------------------------------------| | linked_page_id | string | "" | Yes | ID of your listing template page | | view_type | string | "badge" | No | Display style: "alpha", "badge", "carousel"| | columns | string | "3" | No | Number of columns (1-4, grid/tile only) | | tag_filters | array | [] | No | Filter by specific tags | | tag_category | string | "" | No | Filter by tag category | | match_records_by_tag_category| boolean | false | No | Match records by tag category | | filter_records_by_region | boolean | true | No | Filter by region or guide | | selected_region_id | string | "" | No | Manually select a region or guide to filter by | | region_filtering_mode | string | "" | No | Region hierarchy modes when automatic region context applies (current-and-children, current-and-parents, current-and-lineage). Not used on Single Guide pages (automatic guide membership only). | | main_type | string | "" | No | Filter by main type (comma-separated) | | sort_by | string | "default" | No | Sort order | | button_text | string | "Explore" | No | Text for the action button | | custom_template_name | string | "" | No | Use a custom template for display | | class_name | string | "" | No | Custom CSS class | | align | string | "wide" | No | Alignment (left, center, right, wide) | | show_image | boolean | true | No | Show/hide listing image | | show_name | boolean | true | No | Show/hide listing name | | show_subtitle | boolean | false | No | Show/hide listing subtitle | | show_short_description | boolean | false | No | Show/hide short description | | show_description | boolean | false | No | Show/hide full description | | show_city | boolean | true | No | Show/hide city | | show_address | boolean | false | No | Show/hide address | | show_phone | boolean | false | No | Show/hide phone number | | show_email | boolean | false | No | Show/hide email | | show_website | boolean | false | No | Show/hide website link | | show_booking_link | boolean | false | No | Show/hide booking link | | show_tags | boolean | false | No | Show/hide tags | | show_region | boolean | false | No | Show/hide region info | | show_related_itineraries | boolean | false | No | Show/hide related itineraries | | show_stats | boolean | false | No | Load stats onto each card after page load | | stats_category | string | "" | No | Stats category slug (blank = summary) | Examples Directory (Alpha) Example: [tourismo-listings linked_page_id="123" view_type="alpha" columns="3" show_name="true" show_city="true"] Tiles (Badge) Example: [tourismo-listings linked_page_id="123" view_type="badge" columns="3" show_image="true" show_name="true" show_city="true"] Carousel Example: [tourismo-listings linked_page_id="123" view_type="carousel" show_image="true" show_name="true"] Filtered by Main Type Example: [tourismo-listings linked_page_id="123" main_type="member,featured" view_type="badge" columns="3"] Manual Region Selection Example: [tourismo-listings linked_page_id="123" filter_records_by_region="true" selected_region_id="1" view_type="badge" columns="3"] Current Region Plus Lineage Example: [tourismo-listings linked_page_id="123" filter_records_by_region="true" region_filtering_mode="current-and-lineage" view_type="badge" columns="3"] Content Displayed - Listing name, image, and subtitle - Short and/or full description - City, address, phone, email, website, booking link - Tags and region info - Related itineraries (if enabled) Related Blocks - Itineraries – Display a list of itineraries - Filter – Add content filtering - Title – Add section headers

Last updated on Aug 13, 2026

Listings Additional

Additional Listings Block Displays a grid of additional listings. This block shows 3 random listings of main_type="member" (default, but can be changed) in a card-based layout, perfect for showcasing secondary or supporting listings in your tourism directory. Overview The Additional Listings block is designed for collection pages where you want to display secondary listings alongside your main content. It automatically fetches additional listings from your Tourismo admin platform and presents them in an organized grid layout. This is ideal for business directories, tourism sites, or any page where you want to showcase multiple businesses without featuring them as primary content. Block Features & Options Display Modes - Grid Layout: Displays listings in a responsive grid with configurable columns (1-3) - Card-based Design: Each listing appears in a Bootstrap card with consistent styling - Responsive Design: Automatically adapts to different screen sizes Layout Options - Columns: Choose from 1, 2, or 3 columns for the grid layout - Alignment: Left, center, or right alignment options - Custom CSS Class: Add custom CSS classes for additional styling Content & Filter Options - Main Type: Filter by main type (member, non-member, featured, etc.) - Show Image: Toggle to display listing images (default: enabled) - Show Name: Toggle to display listing names (default: enabled) - Show Subtitle: Toggle to display listing subtitles (default: disabled) - Show Description: Toggle to display listing descriptions (default: enabled) Display Toggles - Linked Page: Connect to a listing template page for navigation - Custom Template: Use a custom template name for advanced styling How it Works The Additional Listings block automatically fetches additional listings from your Tourismo admin platform via the API. These are listings that are not marked as featured or primary. The block displays them in a responsive grid layout using Bootstrap cards, with each listing showing its image, name, and description based on your display settings. You can filter by main type to show specific categories of listings (e.g., member businesses, featured partners, etc.). How to Add & Configure 1. Add the Block: In the WordPress block editor, search for "Additional Listings" and add it to your page 2. Filter by Main Type: Enter main type slugs separated by commas (e.g., member, non-member, featured) 3. Configure Layout: In the block settings sidebar, set the number of columns (1-4) 4. Set Display Options: Toggle which elements to show (image, name, subtitle, description) 5. Link to Template Page: Select a listing template page for navigation (recommended) 6. Add Custom Classes: Optionally add custom CSS classes for styling Shortcode Usage Basic Shortcode [tourismo-listings-additional] Shortcode Options | Option | Type | Default | Description | |--------|------|---------|-------------| | linked_page_id | string | "" | Required - ID of the listing template page for navigation | | custom_template_name | string | "" | Custom template name for advanced styling | | columns | string | "1" | Number of columns (1, 2, 3, or 4) | | class_name | string | "" | Custom CSS class name | | align | string | "" | Text alignment (left, center, right) | | main_type | string | "member" | Filter by main type slugs separated by commas (e.g., member, non-member, featured) | | show_image | boolean | true | Show listing images | | show_name | boolean | true | Show listing names | | show_subtitle | boolean | false | Show listing subtitles | | show_description | boolean | true | Show listing descriptions | Practical Examples Basic additional listings with 3 columns: [tourismo-listings-additional linked_page_id="123" columns="3"] Additional listings with custom styling: [tourismo-listings-additional linked_page_id="123" columns="2" show_image="false" class_name="my-custom-listings"] Centered additional listings with 4 columns: [tourismo-listings-additional linked_page_id="123" columns="4" align="center" show_description="false"] Featured partner listings: [tourismo-listings-additional linked_page_id="123" main_type="featured" columns="3"] Non-member business listings: [tourismo-listings-additional linked_page_id="123" main_type="non-member" columns="2"] Multiple main types: [tourismo-listings-additional linked_page_id="123" main_type="member,featured,premium" columns="3"] Content Displayed The Additional Listings block displays: - Listing Images: Hero images for each listing (if available) - Listing Names: Business names as clickable links - Subtitles: Listing subtitles (if available and enabled) - Descriptions: Full descriptions with markdown support - Contact Information: Phone, email, website, and booking links - Location Details: City, region, and full address - Tags: Categorized tags for filtering - Related Itineraries: Connected itinerary information Each listing is presented in a Bootstrap card with consistent styling and responsive behavior. The layout automatically adjusts based on the column setting and screen size. Related Blocks - Listings Block - Display primary/featured listings - Listings Featured Block - Show featured listings in a carousel - Listing Info Block - Display detailed information for a single listing - Listing Website Button Block - Add website links to listings

Last updated on Nov 19, 2025

Listings Featured

Featured Listings Block The Featured Listings block displays a carousel of featured listings from your Tourismo content. Use it to showcase highlighted businesses, attractions, or services in an engaging horizontal slider format. Overview Use the Featured Listings block to: - Showcase featured or highlighted listings in a carousel format - Display business information with contact details and descriptions - Create engaging content sections for homepage or region pages - Highlight premium or sponsored listings Block Features & Options Display Modes: - Carousel (Default): Horizontal slider with auto-play and wrap-around functionality Layout Options: - align: Alignment of the block (left, center, right) - class_name: Custom CSS class for additional styling Content & Filter Options: - linked_page_id: ID of your listing template page (required for navigation) - custom_template_name: Use a custom template for display Display Toggles: - show_image, show_name, show_city, show_description, show_short_description, show_address, show_phone, show_email, show_website, show_booking_link, show_tags, show_region, show_related_itineraries, show_stats How it Works - The block pulls featured listings from your Tourismo content and displays them in an auto-playing carousel. - Each listing card shows selected information fields and links to the listing's detail page. - The carousel automatically plays and wraps around to the beginning when reaching the end. - The block is styled with .itin and .itinerator-featured-listing classes for easy targeting. How to Add & Configure 1. Open the block editor on any page or post 2. Click the + button to add a new block 3. Search for "Featured Listings" in the block inserter 4. Select "Itinerator Featured Listings" from the results 5. Configure settings in the block sidebar Shortcode Usage Important: The linked_page_id attribute is required for correct navigation. Always include it in your shortcode. The WordPress shortcode tag is tourismo-featured (block type featured in code). It is not tourismo-listings-featured—the editor block is still named “Featured Listings” and uses listings-featured attribute files, but registration uses the featured slug. Basic Shortcode [tourismo-featured linked_page_id="YOUR_PAGE_ID"] With Options [tourismo-featured linked_page_id="YOUR_PAGE_ID" show_image="true" show_name="true" show_description="true" show_website="true"] Shortcode Options | Attribute | Type | Default | Required | Description | |--------------------------|----------|-------------|----------|---------------------------------------------| | linked_page_id | string | "" | Yes | ID of your listing template page | | custom_template_name | string | "" | No | Use a custom template for display | | class_name | string | "" | No | Custom CSS class | | align | string | "" | No | Alignment (left, center, right) | | show_image | boolean | true | No | Show/hide listing images | | show_name | boolean | true | No | Show/hide listing name | | show_city | boolean | false | No | Show/hide city information | | show_description | boolean | false | No | Show/hide full description | | show_short_description | boolean | false | No | Show/hide short description | | show_address | boolean | false | No | Show/hide address information | | show_phone | boolean | false | No | Show/hide phone number | | show_email | boolean | false | No | Show/hide email address | | show_website | boolean | false | No | Show/hide website link | | show_booking_link | boolean | false | No | Show/hide booking link | | show_tags | boolean | false | No | Show/hide tags | | show_region | boolean | false | No | Show/hide region information | | show_related_itineraries | boolean | false | No | Show/hide related itineraries | | show_stats | boolean | false | No | Load stats onto each card after page load | | stats_category | string | "" | No | Stats category slug (blank = summary) | Examples Simple Featured Listings Carousel: [tourismo-featured linked_page_id="123" show_image="true" show_name="true" show_description="true"] Featured Listings with Contact Info: [tourismo-featured linked_page_id="123" show_image="true" show_name="true" show_phone="true" show_email="true" show_website="true" show_address="true"] Featured Listings with Related Content: [tourismo-featured linked_page_id="123" show_image="true" show_name="true" show_tags="true" show_related_itineraries="true"] Content Displayed - Listing name, hero image, and descriptions - Contact information (phone, email, address) - Website and booking links - Region and city information - Tags and related itineraries - Auto-playing carousel with wrap-around functionality Layout: Horizontal carousel with auto-play and navigation Related Blocks - Listings – Display a list or grid of all listings - Listings Additional – Display additional listings - Listing Info – Display detailed listing information - Listing Website Button – Add website links

Last updated on Aug 13, 2026

Regions

Regions Block The Regions block displays a collection of regions from your Tourismo content. Use it to create region directories, showcase neighboring areas, or display subregions on your site. Overview Use the Regions block to: - Show a directory of available regions - Display regions in rows, grid, or carousel format - Filter, sort, and customize which regions are shown - Add a regions section to region, city, or category pages - Filter by specific regions when not on a region/itinerary/listing/event page Block Features & Options Display Modes: - Rows (Default): Two-column layout (image and content) - Grid (Badge): Multi-column card grid (set viewType="badge") - Carousel: Horizontal slider (set viewType="carousel") - Custom Template: Use custom template override Layout Options: - columns: Number of columns (1-4, default: 3; applies to grid/badge mode) - align: Alignment of the block (left, center, right, wide) - className: Custom CSS class for additional styling Content & Filter Options: - linkedPageId: ID of your region template page (required for navigation) - viewType: Display style ("rows", "badge", "carousel", or "custom") - tagFilters: Filter by specific tags - tagCategory: Filter by tag category - matchRecordsByTagCategory: Match records by tag category (boolean) - filterRecordsByRegion: Filter regions by region (boolean) - selectedRegionId: Manually select a specific region to filter by (string; only available when not on region/itinerary/listing/event pages) - regionFilteringMode: Choose how automatic region context behaves (siblings, subregions, or top-level) - onlyShowSubregions: Legacy toggle no longer visible (automatically maps to regionFilteringMode="only-subregions") - sortBy: Sort order (e.g., "name", "default") - buttonText: Text for the action button - customTemplateName: Use a custom template for display Display Toggles: - showHero, showName, showSubtitle, showShortDescription, showDescription, showTags, showChallengeCount, showButton, showRelatedItineraries, showStats When Show Stats is on, cards fetch stats after the page loads. Leave Stats Category blank for the default summary, or enter a category slug such as summary_custom_bcat. Custom templates can call $this->render_stats_placeholder($record) to include the same mount. The mount is templates/partials/stats.php. Override it in the theme as itinerator/partials/stats.php, or per block as itinerator/partials/stats-regions.php. Keep the data-itin-stats* attributes so JS can fetch. Optional: a <template> for chip HTML, data-itin-stats-skip-icons to omit API SVGs, and data-itin-stats-icon-src with {stat_type} for theme image files. Each painted item has data-stat-type (API slug, e.g. shopping) and itin-stats-count-{n}. Zero-count chips are hidden by default. Hide one type in a theme stylesheet: .itin-stats-item[data-stat-type="shopping"] { display: none; } Theme icons from the project folder (example): <div class="itin-stats" data-itin-stats="true" data-itin-stats-type="<?php echo esc_attr($stats_type); ?>" data-itin-stats-id="<?php echo esc_attr((string) $stats_id); ?>" data-itin-stats-category="<?php echo esc_attr($stats_category); ?>" data-itin-stats-skip-icons data-itin-stats-icon-src="<?php echo esc_attr(get_stylesheet_directory_uri() . '/assets/icons/{stat_type}.svg'); ?>"> <template> <span class="itin-stats-item"> <img class="itin-stats-icon" alt=""> <span class="itin-stats-value"></span> <span class="itin-stats-name"></span> </span> </template> </div> Or remove a type after paint with the bubbling itin:stats:loaded event: document.addEventListener("itin:stats:loaded", (event) => { event.target .querySelectorAll('.itin-stats-item[data-stat-type="shopping"]') .forEach((item) => item.remove()); }); How it Works - The block pulls regions from your Tourismo content and displays them in the selected format. - Region Filtering Basics: - On region/guide/itinerary/listing/event pages: Automatically filters relative to the current page context, with manual override available - On other pages: Manually choose a region or guide to filter by - Manual Override: Selecting a specific region or guide always takes precedence over automatic filtering - Destination guides are not listed by this block — use the Guides block for guide collections Region Filtering Modes (Regions Block) When filterRecordsByRegion is enabled on a page that already has regional context, the sidebar shows a Filtering Mode dropdown: | Mode | Description | Shortcode value | | --- | --- | --- | | Show siblings of current record (default) | Displays regions that share the same parent as the current region. If the current region is top-level, only other top-level regions are shown. | "" (attribute omitted) or show-siblings | | Show sub-records of current record | Displays direct children of the current region. Replaces the old onlyShowSubregions toggle. | only-subregions | | Show top-level records only | Lists only regions without parents, regardless of the current region. | show-top-level | | Select a specific region or guide | Picks an exact parent and ignores automatic context. | Set selected_region_id | Manual selections always reset region_filtering_mode. Existing blocks that previously relied on only_show_subregions remain compatible—the attribute is still read and transparently maps to region_filtering_mode="only-subregions". - Filtering, sorting, and display options can be set in the block editor or via shortcode attributes. - The block is styled with .itin and .itinerator-regions classes for easy targeting. - Clicking a region navigates to the linked template page (set via linkedPageId). How to Add & Configure 1. Open the block editor on any page or post 2. Click the + button to add a new block 3. Search for "Regions" in the block inserter 4. Select "Itinerator Regions" from the results 5. Configure settings in the block sidebar Shortcode Usage Important: The linked_page_id attribute is required for correct navigation. Always include it in your shortcode. Basic Shortcode [tourismo-regions linked_page_id="YOUR_PAGE_ID"] With Options [tourismo-regions linked_page_id="YOUR_PAGE_ID" view_type="badge" columns="3" show_hero="true" show_name="true" align="center"] Shortcode Options | Attribute | Type | Default | Required | Description | |--------------------------|----------|-------------|----------|---------------------------------------------| | linked_page_id | string | "" | Yes | ID of your region template page | | view_type | string | "rows" | No | Display style: "rows", "badge", "carousel" | | columns | string | "3" | No | Number of columns (1-4, grid/badge only) | | tag_filters | array | [] | No | Filter by specific tags | | tag_category | string | "" | No | Filter by tag category | | match_records_by_tag_category| boolean | false | No | Match records by tag category | | filter_records_by_region | boolean | true | No | Filter by region (auto-enabled if onlyShowSubregions is set) | | selected_region_id | string | "" | No | Manually select a region to filter by | | region_filtering_mode | string | "" | No | Choose automatic mode: show-siblings (default/blank), only-subregions, or show-top-level | | only_show_subregions | boolean | true | No | Legacy attribute preserved for backward compatibility; maps to region_filtering_mode="only-subregions" | | sort_by | string | "default" | No | Sort order | | button_text | string | "Explore" | No | Text for the action button | | custom_template_name | string | "" | No | Use a custom template for display | | class_name | string | "" | No | Custom CSS class | | align | string | "wide" | No | Alignment (left, center, right, wide) | | show_hero | boolean | true | No | Show/hide region hero images | | show_name | boolean | true | No | Show/hide region name | | show_subtitle | boolean | true | No | Show/hide subtitle | | show_short_description | boolean | true | No | Show/hide short description | | show_description | boolean | true | No | Show/hide full description | | show_tags | boolean | false | No | Show/hide tags | | show_challenge_count | boolean | false | No | Show/hide challenge count | | show_button | boolean | false | No | Show/hide action button | | show_related_itineraries | boolean | false | No | Show/hide related itineraries | | show_stats | boolean | false | No | Load stats onto each card after page load | | stats_category | string | "" | No | Stats category slug (blank = summary) | Examples Rows (Default) Example: [tourismo-regions linked_page_id="123" show_name="true" show_description="true" show_region="true"] Grid (Badge) Example: [tourismo-regions linked_page_id="123" view_type="badge" columns="3" show_hero="true" show_name="true"] Carousel Example: [tourismo-regions linked_page_id="123" view_type="carousel" show_hero="true" show_name="true"] Manual Region Selection Example: [tourismo-regions linked_page_id="123" filter_records_by_region="true" selected_region_id="3"] Subregions of Current Region: [tourismo-regions linked_page_id="123" filter_records_by_region="true" region_filtering_mode="only-subregions" show_short_description="true"] Show Top-Level Regions Only: [tourismo-regions linked_page_id="123" filter_records_by_region="true" region_filtering_mode="show-top-level"] Show Current Region Plus Siblings (Explicit): [tourismo-regions linked_page_id="123" filter_records_by_region="true" region_filtering_mode="show-siblings"] Content Displayed - Region name, subtitle, and hero image - Short and/or full description - Challenge count (if enabled) - Tags and categories - Related itineraries (if enabled) - Action button (if enabled) Layout options: - Rows (two column, default) - Grid (multi-column cards, set viewType="badge") - Carousel (horizontal slider, set viewType="carousel") - Custom template (set customTemplateName) Technical Implementation Notes: - Query Key Logic: The block always filters by parent_region_id, with client-side adjustments that ensure top-level and sibling views stay accurate. - Automatic Context: region_filtering_mode drives whether the API request targets siblings, subregions, or top-level regions. - Manual Context: Providing selected_region_id bypasses automatic context and filters relative to the specified region, regardless of mode. - Backward Compatibility: only_show_subregions is still read and simply toggles region_filtering_mode="only-subregions" behind the scenes. Related Blocks - Guides Block – Themed guides (separate from destination regions) - Region – Display a single region with map - Filter – Add content filtering - Title – Add section headers

Last updated on Aug 13, 2026

Related Posts

Related Posts Block The Related Posts block automatically displays WordPress posts that are related to the current Itinerator page based on shared taxonomy terms. It's perfect for showing relevant blog posts, articles, or custom content that relates to a specific region, itinerary, listing, or event. Overview The Related Posts block intelligently finds and displays posts that share taxonomy terms with the current page. For example, if you're viewing a region page, it will show posts tagged with the same region taxonomy term. This creates natural content connections and helps visitors discover related information. Use Cases: - Show blog posts about a specific region on region pages - Display articles related to an itinerary on itinerary pages - Feature news or updates about a business on listing pages - Create content hubs around specific events or destinations Block Features & Options Display Modes - Card Layout: Posts display in a responsive grid with featured images, titles, excerpts, and read more links - Content Toggles: Control which elements to show (image, title, excerpt, read more link) Layout Options - Number of Posts: Set how many related posts to display (default: 3) - Sort Order: Choose from date (newest first), title (A-Z), name (A-Z), last modified, or random - Post Types: Select which WordPress post types to include (e.g., Posts, Pages, Events) Automatic Filtering (New) The block provides intuitive checkboxes to automatically filter content based on the current page context: - Filter by Current Region: Shows posts tagged with the region of the current page. (Shown on non-guide pages) - Filter by Current Guide: Shows posts tagged with the current guide (itin-guides). (Shown instead of Region on Single Guide pages) - Filter by Current Itinerary: Shows posts tagged with the current itinerary. (Available on Itinerary pages) - Filter by Related Itineraries: Shows posts tagged with any of the itineraries related to the current listing. (Available on Listing pages) - Filter by Current Listing: Shows posts tagged with the current listing. (Available only on Listing pages) Filter Logic: - Match ALL filters (AND): Shows posts that match every checked filter (e.g., tagged with Region AND Itinerary). - Match ANY filter (OR): Shows posts that match at least one checked filter (e.g., tagged with Region OR Itinerary). Advanced Query - Custom Query String: Override or extend the automatic matching with custom WordPress query parameters. - Shortcode Support: Supports dynamic values like category=[itin-stripped-slug] or itin-regions=[itin-stripped-id]. Display Toggles - Show Image: Display featured images for each post - Show Title: Show post titles - Show Excerpt: Display post excerpts - Show Read More: Include "Read More" links Configuration Enabling Taxonomies on Post Types By default, Itinerator taxonomies (Regions, Guides, Itineraries, Listings) are only enabled for standard WordPress Posts. To use this block with other post types (like Pages or custom types): 1. Go to Itinerator > Settings. 2. Find the "Enable Taxonomies for Post Types" field. 3. Enter a comma-separated list of post type slugs (e.g., post, page, event). 4. Save settings. Guides migration note: Guide IDs that were previously tagged under Itinerator Regions (when guides were included in /regions) should be re-tagged under Itinerator Guides (itin-guides). The regions taxonomy sync no longer includes guides after the API split. Adding the Block 1. Add the Block: In the block editor, search for "Related Posts" and add it to your page 2. Select Post Types: Choose which content types to search. 3. Configure Filters: Check "Filter by Current Region" or "Filter by Current Guide" (depending on page type), plus itinerary/listing filters when available 4. Adjust Logic: Choose "Match ALL" or "Match ANY" if using multiple filters. Shortcode Usage Basic Shortcode [tourismo-related-posts] All Available Options | Option | Type | Default | Description | |--------|------|---------|-------------| | display_count | number | 3 | Number of posts to display | | sort_by | string | "date" | Sort order: "date", "title", "name", "modified", "rand" | | post_types | string | "post" | Comma-separated list of post type slugs | | filter_by_region | boolean | true | Filter by current region ID | | filter_by_guide | boolean | false | Filter by current guide ID (itin-guides) | | filter_by_itinerary | boolean | false | Filter by current itinerary ID | | filter_by_listing | boolean | false | Filter by current listing ID | | tax_query_relation | string | "AND" | "AND" or "OR" logic for multiple filters | | custom_query | string | "" | Custom WordPress query parameters | | show_image | boolean | true | Show featured images | | show_title | boolean | true | Show post titles | | show_excerpt | boolean | true | Show post excerpts | | show_read_more | boolean | true | Show "Read More" links | | class_name | string | "" | Additional CSS classes | Practical Examples Show 5 recent posts about the current region: [tourismo-related-posts display_count="5" sort_by="date" filter_by_region="true"] Show posts about the current guide (Single Guide page): [tourismo-related-posts filter_by_guide="true" filter_by_region="false"] Show posts that match EITHER the Region OR the Itinerary: [tourismo-related-posts filter_by_region="true" filter_by_itinerary="true" tax_query_relation="OR"] Display pages and posts sorted by title: [tourismo-related-posts post_types="post,page" sort_by="title"] Advanced: Show posts from a specific category: [tourismo-related-posts custom_query="category=news"] Advanced: Show posts with specific tags: [tourismo-related-posts custom_query="tag=featured"] Related Blocks - Itineraries Block - Display itinerary collections - Listings Block - Show business and attraction listings - Events Block - Display event collections - Regions Block - Show region collections - Guides Block - Show themed guide collections

Last updated on Aug 12, 2026

Guides

Guides Block The Guides block displays a collection of themed guides from your Tourismo content. Guides are separate from destination regions — use this block for guide directories, nested guides, or featured guides on your site. Overview Use the Guides block to: - Show a directory of available guides - Display guides in rows, grid, or carousel format - Filter, sort, and customize which guides are shown - Add a guides section to Single Guide pages (siblings, sub-guides, or top-level) - Show featured guides only via the featuredOnly toggle - Filter by a specific region or guide when not on a page with automatic context Block Features & Options Display Modes: - Rows (Default): Two-column layout (image and content) - Grid (Badge): Multi-column card grid (set viewType="badge") - Carousel: Horizontal slider (set viewType="carousel") - Custom Template: Use custom template override Layout Options: - columns: Number of columns (1-4, default: 3; applies to grid/badge mode) - align: Alignment of the block (left, center, right, wide) - className: Custom CSS class for additional styling Content & Filter Options: - linkedPageId: ID of your Single Guide template page (required for navigation) - viewType: Display style ("rows", "badge", "carousel", or "custom") - featuredOnly: Show only featured guides from /guides/featured (boolean) - tagFilters: Filter by specific tags - tagCategory: Filter by tag category - matchRecordsByTagCategory: Match records by tag category (boolean) - filterRecordsByRegion: Filter by region or guide hierarchy (boolean) - selectedRegionId: Manually select a specific region or guide to filter by - regionFilteringMode: Choose how automatic context behaves (siblings, sub-records, or top-level) - sortBy: Sort order (e.g., "name", "default") - buttonText: Text for the action button - customTemplateName: Use a custom template for display Display Toggles: - showHero, showName, showSubtitle, showShortDescription, showDescription, showTags, showChallengeCount, showButton, showRelatedItineraries, showStats When Show Stats is on, cards fetch stats after the page loads. Leave Stats Category blank for the default summary, or enter a category slug such as summary_custom_bcat. Custom templates can call $this->render_stats_placeholder($record) to include the same mount. Override the mount in itinerator/partials/stats.php (see Regions). How it Works - The block pulls guides from /guides (or /guides/featured when featuredOnly is enabled). - Destination regions are not included — use the Regions block for those. - Filtering basics: - On guide/region/itinerary/listing/event pages: Automatically filters relative to the current page context, with manual override available - On other pages: Choose a specific region or guide from the Filter by Region or Guide control - Manual override: Selecting a specific region or guide always takes precedence over automatic filtering Filtering Modes (Guides Block) When filterRecordsByRegion is enabled on a page with automatic context, the sidebar shows a Filtering Mode dropdown: | Mode | Description | Shortcode value | | --- | --- | --- | | Show siblings of current record (default) | Displays guides that share the same parent as the current guide. If the current guide is top-level, only other top-level guides are shown. | "" (attribute omitted) or show-siblings | | Show sub-records of current record | Displays direct children of the current guide. | only-subregions | | Show top-level records only | Lists only guides without parents, regardless of the current guide. | show-top-level | | Select a specific region or guide | Picks an exact parent and ignores automatic context. | Set selected_region_id | Manual selections always reset region_filtering_mode. Related blocks on Single Guide pages When Listings, Events, Itineraries, or Challenges blocks filter by the current guide (or a manually selected guide), the plugin sends filter[guide_id] to the API — not filter[region_id]. | Resource | What filter[guide_id] means | | --- | --- | | Listings | Inside the guide's bounds and share the guide's tags | | Events | Event locations inside the guide's bounds and share the guide's tags | | Itineraries | Stops/listings inside the guide's bounds and share the guide's tags | | Challenges | Challenges with tasks targeting listings/events in the guide (bounds + shared tags), or the guide itself | In the block editor on a Single Guide page, those collection blocks only offer Use current guide (automatic) plus manual region/guide picks. Region hierarchy modes (children / parents / lineage) are hidden there — they describe region geography, not guide membership, and do not expand to a parent region. See also: Listings, Events, Itineraries, Challenges, Map. Related Posts and taxonomies WordPress posts can be tagged with Itinerator Guides (itin-guides), synced from /guides/list. On a Single Guide page, the Related Posts block can use Filter by Current Guide. - Filtering, sorting, and display options can be set in the block editor or via shortcode attributes. - The block is styled with .itin and .itinerator-guides classes for easy targeting. - Clicking a guide navigates to the linked template page (set via linkedPageId). Upgrading to Guides (Regions / Guides API split) Most WordPress sites never listed guides as regions. The usual pattern was destination regions in the Regions block, with tag filters keeping themed guides out of those lists. Guides were already first-class on apps / Next.js; this plugin release catches WordPress up. What to expect - Regions stay on /regions; guides live on /guides (numeric IDs unchanged) - Existing region collection pages typically need no migration - The plugin never used API filter[themed] / filter[not_themed] — tag filters were the WP pattern Checklist (only if you used guides on WP before) 1. Deploy the plugin and API together, then clear Itinerator cache 2. If any Single page for a guide is still typed as Region, set Page Type to Single Guide (otherwise /regions/{slug} 404s) 3. If Related Posts used guide IDs under Itinerator Regions, re-tag those posts under Itinerator Guides (itin-guides) and use Filter by Current Guide 4. If a collection block manually selected a guide without selectedFilterType: "guide", re-pick it from the Guides section in the filter control To start showing guides on WP (new capability): add a Guides block + Single Guide template page. See Getting Started. How to Add & Configure 1. Open the block editor on any page or post 2. Click the + button to add a new block 3. Search for "Guides" in the block inserter 4. Select "Itinerator Guides" from the results 5. Configure settings in the block sidebar 6. Set Linked Page to your Single Guide template page Shortcode Usage Important: The linked_page_id attribute is required for correct navigation. Always include it in your shortcode. Basic Shortcode [tourismo-guides linked_page_id="YOUR_PAGE_ID"] With Options [tourismo-guides linked_page_id="YOUR_PAGE_ID" view_type="badge" columns="3" show_hero="true" show_name="true" align="center"] Featured Guides [tourismo-guides linked_page_id="YOUR_PAGE_ID" featured_only="true" view_type="carousel"] Shortcode Options | Attribute | Type | Default | Required | Description | |--------------------------|----------|-------------|----------|---------------------------------------------| | linked_page_id | string | "" | Yes | ID of your Single Guide template page | | view_type | string | "rows" | No | Display style: "rows", "badge", "carousel" | | columns | string | "3" | No | Number of columns (1-4, grid/badge only) | | featured_only | boolean | false | No | Show only featured guides | | tag_filters | array | [] | No | Filter by specific tags | | tag_category | string | "" | No | Filter by tag category | | match_records_by_tag_category| boolean | false | No | Match records by tag category | | filter_records_by_region | boolean | true | No | Filter by region or guide hierarchy | | selected_region_id | string | "" | No | Manually select a region or guide to filter by | | region_filtering_mode | string | "" | No | show-siblings (default/blank), only-subregions, or show-top-level | | sort_by | string | "default" | No | Sort order | | button_text | string | "Explore" | No | Text for the action button | | custom_template_name | string | "" | No | Use a custom template for display | | class_name | string | "" | No | Custom CSS class | | align | string | "wide" | No | Alignment (left, center, right, wide) | | show_hero | boolean | true | No | Show/hide guide hero images | | show_name | boolean | true | No | Show/hide guide name | | show_subtitle | boolean | true | No | Show/hide subtitle | | show_short_description | boolean | true | No | Show/hide short description | | show_description | boolean | true | No | Show/hide full description | | show_tags | boolean | false | No | Show/hide tags | | show_challenge_count | boolean | false | No | Show/hide challenge count | | show_button | boolean | false | No | Show/hide action button | | show_related_itineraries | boolean | false | No | Show/hide related itineraries | | show_stats | boolean | false | No | Load stats onto each card after page load | | stats_category | string | "" | No | Stats category slug (blank = summary) | Examples Rows (Default) Example: [tourismo-guides linked_page_id="123" show_name="true" show_description="true"] Grid (Badge) Example: [tourismo-guides linked_page_id="123" view_type="badge" columns="3" show_hero="true" show_name="true"] Carousel Example: [tourismo-guides linked_page_id="123" view_type="carousel" show_hero="true" show_name="true"] Sub-guides of Current Guide: [tourismo-guides linked_page_id="123" filter_records_by_region="true" region_filtering_mode="only-subregions"] Show Top-Level Guides Only: [tourismo-guides linked_page_id="123" filter_records_by_region="true" region_filtering_mode="show-top-level"] Content Displayed - Guide name, subtitle, and hero image - Short and/or full description - Challenge count (if enabled) - Tags and categories - Related itineraries (if enabled) - Action button (if enabled) Layout options: - Rows (two column, default) - Grid (multi-column cards, set viewType="badge") - Carousel (horizontal slider, set viewType="carousel") - Custom template (set customTemplateName) Technical Implementation Notes: - Query Key Logic: The block filters by parent_region_id (API also accepts parent_guide_id as an alias), with client-side adjustments for top-level and sibling views. - Hierarchy tree: Sibling/sub/top-level modes resolve against /guides/list?as_tree=true, not the regions tree. - Manual Context: Providing selected_region_id bypasses automatic context and filters relative to the specified parent id. Related Blocks - Regions Block – Destination regions (non-guide) - Map – Map overlays on Single Guide pages - Related Posts – Posts tagged with Itinerator Guides - Filter – Add content filtering - Title – Add section headers

Last updated on Aug 13, 2026