The Guide Featured Trip, Trip Guide List, and Trip List Gutenberg blocks support flexible custom layouts using WordPress Block Patterns. By selecting the Custom layout option, you can connect any custom block pattern to your trip block and display trips using your own design without modifying code.

Prerequisites

Before you begin, ensure the following requirements are met:

  • The WP Travel Gutenberg plugin is installed and activated.
  • Your website is using a Full Site Editing (FSE) compatible WordPress block theme.

Add a Custom Layout

Step 1: Add the Block

  • Open the page where you want to display the trips.
  • Add one of the following blocks:
    • Guide Featured Trip
    • Trip Guide List
    • Trip List
WP Travel Trip List block layout settings

Step 2: Select the Custom Layout Option

  • Open the block settings panel.
  • Find the Select Layout option.
  • Change the layout option to Custom.
Custom Layout option in Select Layout dropdown
  • After selecting Custom, a new Slug field will appear.
  • The Slug field connects the trip block with your custom WordPress pattern. The slug entered here must exactly match the pattern slug you create later.
Pattern Slug field in Trip List block settings

Create a Custom Pattern

Step 3: Open WordPress Patterns

  • Go to your WordPress Dashboard.
  • Navigate to: Appearance β†’ Editor
WordPress Editor menu option
  • Click on a pattern
Patterns option in WordPress Design menu

Step 4: Create or Edit a Pattern

  • Create a new pattern or open an existing pattern.
  • Design your preferred layout for the trip block.
  • Save the pattern.

You can customize the pattern structure, styling, and block arrangement according to your requirements.

WordPress Patterns screen with Add Pattern button

Connect the Pattern with the Block

Step 5: Copy the Pattern Slug

  • Open the saved pattern.
  • Copy the Pattern Slug.

Important: The pattern slug must exactly match the value entered in the trip block’s Slug field.

Custom trip list pattern in WordPress editor

Step 6: Add the Pattern Slug to the Block

  • Return to the page containing your trip block.
  • Make sure the layout is set to Custom.
  • Paste the copied pattern slug into the Slug field.
Custom Layout with pattern slug entered
  • Save or update the page.

Your trip block will now display using the custom pattern layout you created.

The selected trip block will automatically use your custom WordPress pattern design, allowing you to create unique trip layouts without modifying code.

Check the WP Travel documentation to learn more about configurations, modules, payments, and shortcodes.

Your feedback helps us improve. Feel free to share your thoughts!

Need assistance? Contact our support team, join our Facebook community, and subscribe to our YouTube Channel for video tutorials.

You can also find us on Facebook, Instagram, LinkedIn, TikTok, and X. Thank you for choosing WP Travel.

If you are a WP Travel Free user thinking about upgrading to Pro, simply click on the banner below.

Get WP Travel Pro