Tags

Last updated on Sep 16, 2025

Tags Block

Displays tags associated with the current page content in a clean badge format. The Tags block shows tags from a specific category and is commonly used on template pages to display relevant tags for listings, itineraries, events, or regions.

Overview

The Tags block displays tags from the current page's data in a centered, badge-style layout. It automatically filters tags by category and presents them in a clean, readable format. This block is typically used on template pages to show relevant tags that help users understand the features, amenities, or characteristics of the displayed content.

Block Features & Options

Display Options

  • Tag Category: Select which category of tags to display (e.g., "amenity", "activity", "feature")
  • Custom Template Name: Override the default template with a custom template file

Layout Options

  • Custom CSS Class: Add custom CSS classes for styling

How it Works

The Tags block retrieves tags from the current page's data and filters them by the selected category. It displays the filtered tags in a centered layout using Bootstrap badge styling. The block automatically adapts to the page type (listing, itinerary, event, region) and applies appropriate CSS classes for styling.

How to Add & Configure

  1. Add the block to a template page (Region, Itinerary, Listing, Event, etc.)
  2. Select Tag Category in the block sidebar to choose which type of tags to display
  3. Preview the display - tags will appear as centered badges
  4. Add custom CSS classes if needed for additional styling

Shortcode Usage

Basic Shortcode

[tourismo-tags]

Available Options

Option Type Default Description
tag_category string "" Category of tags to display (e.g., "amenity", "activity")
custom_template_name string "" Custom template file name to override default
class_name string "" Additional CSS classes for styling

Examples

Display amenity tags:

[tourismo-tags tag_category="amenity"]

Display activity tags with custom styling:

[tourismo-tags tag_category="activity" class_name="my-custom-tags"]

Use custom template:

[tourismo-tags tag_category="feature" custom_template_name="custom-tags"]

Content Displayed

The Tags block displays:

  • Filtered tags from the selected category
  • Tag names in badge format
  • Centered layout with responsive design
  • Page-type specific styling (listing, itinerary, event, region)

The block automatically:

  • Filters tags by the selected category
  • Displays tags in a clean badge format
  • Centers the content on the page
  • Applies appropriate CSS classes based on page type

Related Blocks

  • Filter Block - Filter content by tags
  • Content Block - Display general content
  • Description Block - Show detailed descriptions
  • Listing Info Block - Display listing-specific information