Skip to content

Shortcode ‐ Examples

Gundahar Bravin edited this page Feb 17, 2026 · 1 revision

Shortcode Examples

L.O.R.E. uses a simple WordPress shortcode to embed maps on your site. This guide shows you all the ways to use it!


🎯 Basic Usage

Simplest Map

Just drop this into any page or post:

[lore_map]

Result: Full-width map at 600px height, centered on your configured coordinates, zoom level 3.


📐 Size & Dimensions

Custom Width

[lore_map width="800px"]

Makes the map 800 pixels wide.

Custom Height

[lore_map height="800px"]

Makes the map 800 pixels tall - great for square maps!

Responsive Full Width

[lore_map width="100%" height="600px"]

Map fills the container width, perfect for responsive layouts.

Small Thumbnail Map

[lore_map width="300px" height="300px"]

Compact map for sidebars or small sections.

Large Feature Map

[lore_map width="100%" height="900px"]

Big, impressive map as a page hero!


🔍 Zoom Levels

Wide View (Zoom Out)

[lore_map zoom="1"]

See your entire grid at once. Good for very large grids.

Balanced View (Recommended)

[lore_map zoom="3"]

Default zoom - shows good detail while seeing multiple regions.

Close-Up View

[lore_map zoom="6"]

Zoomed in for detailed region viewing.

Maximum Zoom

[lore_map zoom="8"]

Closest possible view - shows individual region detail.

Zoom levels: 1 (farthest) to 8 (closest)


🎯 Centering & Focus

Center on Your Welcome Region

[lore_map center_x="10000" center_y="10000"]

Visitors see your Welcome region immediately when the map loads.

Focus on Shopping District

[lore_map center_x="10050" center_y="9985" zoom="5"]

Center on a specific area with close zoom.

Multiple Maps, Different Areas

Page 1 - Residential Areas:

[lore_map center_x="9500" center_y="9500" zoom="4"]

Page 2 - Commercial Hub:

[lore_map center_x="10200" center_y="10100" zoom="5"]

🌐 Grid Override

Display Different Grid

If you run multiple grids from one WordPress site:

[lore_map grid_url="secondgrid.com:8002"]

Overrides the default grid URL for this map instance only.


🎨 Combining Parameters

Perfect Welcome Page Map

[lore_map width="100%" height="700px" zoom="4" center_x="10000" center_y="10000"]

Full-width, tall, zoomed on Welcome region.

Sidebar Mini-Map

[lore_map width="250px" height="250px" zoom="2"]

Compact overview map for widgets or sidebars.

Region Showcase

[lore_map width="600px" height="600px" zoom="7" center_x="10025" center_y="9999"]

Square map, very zoomed in on one specific region.

Landing Page Hero

[lore_map width="100%" height="80vh" zoom="3" center_x="10000" center_y="10000"]

Map takes up 80% of viewport height - huge visual impact!

Note: vh (viewport height) is a CSS unit - 80vh = 80% of browser window height.


📱 Responsive Designs

Mobile-Friendly Map

[lore_map width="100%" height="400px"]

On mobile: full width but shorter height (easier to scroll past).

Desktop-Optimized

[lore_map width="100%" height="700px"]

On desktop: tall map with plenty of detail.

Pro Tip: WordPress doesn't let you do media queries in shortcodes, but you can use CSS in your theme to adjust the .lore-map-container height based on screen size.


🗺️ Multiple Maps on One Page

Comparison Maps

Main Grid:

[lore_map zoom="3"]

Test Grid:

[lore_map grid_url="test.yourgrid.com:8002" zoom="3"]

Each map is independent!

Tour Multiple Areas

Stop 1 - Welcome Plaza:

[lore_map center_x="10000" center_y="10000" zoom="6" height="400px"]

Stop 2 - Shopping District:

[lore_map center_x="10050" center_y="9985" zoom="6" height="400px"]

Stop 3 - Event Venue:

[lore_map center_x="9975" center_y="10020" zoom="7" height="400px"]

Create a visual tour of your grid!


🎯 Common Use Cases

1. Main Map Page

Goal: Comprehensive grid map visitors can explore.

[lore_map width="100%" height="700px" zoom="3"]

Tips:

  • Add a heading above: "Explore Our Grid"
  • Include text below with instructions
  • Link to region directory or events

2. Welcome/Home Page

Goal: Show visitors where to land.

[lore_map width="100%" height="600px" zoom="5" center_x="10000" center_y="10000"]

Tips:

  • Center on your Welcome region
  • Zoom in closer (5-6) so it's obvious
  • Add "Click the map to teleport!" text

3. Event Announcement

Goal: Show where the event is happening.

[lore_map width="600px" height="400px" zoom="7" center_x="10025" center_y="9999"]

Tips:

  • Very zoomed in (6-8) on event region
  • Include event details above/below map
  • Teleport button makes it easy to attend!

4. Real Estate / Rentals Page

Goal: Show available rental regions.

[lore_map width="100%" height="500px" zoom="4" center_x="9800" center_y="9800"]

Tips:

  • Center on your rental area
  • Visitors can click to see region names
  • Add pricing/availability info nearby

5. Grid Directory

Goal: Let visitors browse all regions.

[lore_map width="100%" height="800px" zoom="2"]

Tips:

  • Wider zoom (1-3) to see everything
  • Taller map for more detail
  • Mention the search box in instructions

🚫 What You CAN'T Do (Yet)

These features aren't available but may be added in future versions:

❌ Filter to show only certain regions
❌ Custom marker icons
❌ Different colors per map instance
❌ Click callbacks / JavaScript events
❌ Disable search box or teleport button

Want these features? Request them in GitHub Discussions!


🎨 Styling Maps with CSS

You can customize map appearance with custom CSS in your theme:

Round Corners

.lore-map-container {
    border-radius: 20px;
}

Add Shadow

.lore-map-container {
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

Border

.lore-map-container {
    border: 3px solid #2563eb;
}

Where to add CSS: WordPress Admin → Appearance → Customize → Additional CSS


📝 Parameter Reference

Quick reference for all shortcode parameters:

Parameter Type Default Description
width size 100% Map width (px, %, em, vh)
height size 600px Map height (px, %, em, vh)
zoom number 3 Zoom level (1-8)
center_x number From settings X coordinate to center on
center_y number From settings Y coordinate to center on
grid_url string From settings Override grid URL

💡 Pro Tips

  1. Test on different devices! What looks good on desktop might be too tall on mobile.

  2. Use descriptive text above/below maps to guide visitors.

  3. Link to your registration page near maps to convert visitors!

  4. Combine with other content - maps work great next to text, images, or videos.

  5. Update coordinates if you move your Welcome region.

  6. Keep it simple - most grids only need 1-2 maps total.


🎯 Next Steps

Now that you know how to embed maps:

  1. Customize Colors - Match your branding
  2. Set Up Auto-Sync - Keep map updated automatically
  3. Troubleshooting - Fix any issues

Need more help? Check the FAQ or ask in Discussions!

Share your maps! We'd love to see how you're using L.O.R.E. - post screenshots in Discussions! 📸

Clone this wiki locally