# Dynamic-Sync Setup (Advanced)

#### Step 1: Main Query Setup

1. Add **Ajax Filter Main Query** element
2. Set **Query Name:** `my-locations`
3. Configure post query (post type, filters)

#### Step 2: Map Element

1. Add **Woohoo Google Map** element
2. **Location Source:** Dynamic-sync
3. **Query Name:** `my-locations` (same as Main Query)

#### Step 3: Card Template

Inside your Ajax Filter card template:

1. Add **Woohoo Map Connector** element
2. Map fields using dynamic data:
   * **Latitude:** Dynamic data → ACF field
   * **Longitude:** Dynamic data → ACF field
   * **Marker Icon:** (optional) Custom marker per post
3. Add infobox content (title, image, description) as children of **Woohoo Map Connector**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.woohoo.dance/ajax-filters/woohoo-map/dynamic-sync-setup-advanced.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
