# How to Display Weather Data Accordion in WordPress

BFCM Deals 202650%OffOn all Location Weather Pro plansEnds Soon[Grab the deal](https://locationweather.io/pricing/?utm_source=header_optin&utm_medium=lw_dealbutton&utm_campaign=bfcm26)

![Location Weather](https://locationweather.io/wp-content/uploads/2026/03/Logo-1-1.svg)

![weather icon](https://locationweather.io/wp-content/plugins/location-weather-pro/assets/images/icons/weather-icons/01n.svg)

28°

## HOT

[Account](https://account.shapedplugin.com/?ref=1) [Get It Now](https://locationweather.io/pricing/)

![Location Weather](https://locationweather.io/wp-content/uploads/2026/03/Logo-1-1.svg)

[Account](https://account.shapedplugin.com/?ref=1) [Get It Now](https://locationweather.io/pricing/)

![](https://locationweather.io/wp-content/uploads/2023/11/Location-Weather.svg)

Join **20000+** Happy Users Who Use **Location Weather** to Show Weather Forecasts

[Get It Now](https://locationweather.io/pricing/)

[Tips & Tricks](https://locationweather.io/category/tips-tricks/) [Tutorials](https://locationweather.io/category/tutorials/)

## How to Display Weather Data Accordion in WordPress

![](https://secure.gravatar.com/avatar/b1a4babfd858c03c90d6eeef9bdee4ad2c42a656ffa656f9e713ac4e5d23c6c4?s=48&d=mm&r=g)

Rubel Miah

March 12, 2026

4–7 minutes

![How to Create and Display Weather Data Accordions in WordPress](https://locationweather.io/wp-content/uploads/2026/03/How-to-Create-and-Display-Weather-Data-Accordions-in-WordPress.webp)

Do you want to display **weather forecast data in a collapsible accordion**on your WordPress website? If yes, this guide is for you.

Whether you run a real estate business, tourism, event page, or news site, showing real-time weather in a clear, interactive format keeps your content useful and engaging.

Instead of long or scattered layouts, you can use compact, collapsible templates like **Weather Accordion** to display daily or hourly weather updates and forecasts in an easy-to-navigate format, keeping your page organized and enhancing user experience.

In this guide, I’ll show you the step-by-step guide to create & display weather data in an accordion using [Location Weather](https://locationweather.io/pricing/?ref=335) in minutes.

**Let’s get started.**

## What is the Weather Accordion?

In Essence, the [Weather Accordion](https://locationweather.io/blocks/#demoId40) displays Current Weather, Daily & Hourly forecasts, and Weather Maps in collapsible sections. It allows users to quickly view temperature, humidity, wind, AQI, sunrise/sunset, and alerts without scrolling through long tables while keeping the weather data interactive, organized, and user-friendly.

![Live Example of Weather Accordion](https://locationweather.io/wp-content/uploads/2026/03/Live-Example-of-Weather-Accordion.webp)

## 4 Simple Steps to Display Weather Data Accordion in WordPress

To display detailed weather forecast data in an accordion, firstly, you need to create a weather forecasting accordion template using a plugin like Location Weather. Follow the simple steps below to create a weather accordion template to display weather data on your WordPress website.

## Step 1: Get Location Weather

![Location Weather - World’s Best Weather & Air Quality Plugin for WordPress,](https://locationweather.io/wp-content/uploads/2026/03/What-is-the-Location-Weather-Plugin.webp)

Location Weather is the World’s Best Weather & Air Quality Plugin for WordPress, with the highest active installations, reviews, and ratings in its category. It has been featured on leading platforms such as WPBeginner, WP Engine, WPMU DEV, Elegant Themes, and HubSpot.

Over 20000 business owners love Location Weather for its powerful features, easy customization, and top-notch support.

**Key Features:**

- 60+ ready-to-use [weather patterns library](https://locationweather.io/patterns/)
- 17+ powerful & visual drag-and-drop [weather blocks](https://locationweather.io/blocks/)
- Dedicated [**Weather Accordion**](https://locationweather.io/blocks/#demoId40)to display weather data in a collapsible format
- Daily/hourly weather forecasts in a [collapsible pop-up or card ](https://locationweather.io/display-weather-details-on-a-sleek-popup/)
- [AQI data](https://locationweather.io/display-air-quality-details-for-safe-comfortable-planning/), [historical wea](https://locationweather.io/display-reliable-weather-history-for-46-years/)[th](https://locationweather.io/display-reliable-weather-history-for-46-years/)[er insights](https://locationweather.io/display-reliable-weather-history-for-46-years/), [astronomy information](https://locationweather.io/display-sunrise-sunset-and-moon-phase-data/), i[nteractive weather maps](https://locationweather.io/visualize-weather-conditions-with-interactive-maps/), and more
- Display weather by fixed location, [visitor’s location](https://locationweather.io/display-weather-for-visitors-location-by-auto-detection/), or [custom weather search](https://locationweather.io/let-visitors-search-the-weather-for-any-location-worldwide/)
- Location-based weather data with easy unit switching
- Dynamic backgrounds that change based on live weather conditions
- Support for [weather-based image,](https://locationweather.io/add-dynamic-weather-condition-based-backgrounds/) video, or custom color backgrounds
- Beautiful animations and visual effects
- Full design control with flexible customization options

Let’s install [Location Weather](https://locationweather.io/pricing/?ref=335) & activate, add an API key, choose a template, customize it, and publish your weather data accordion display in minutes without coding.

## Step 2: Configure Weather API Key

We need a Weather API to display the weather data from **OpenWeather** or **WeatherAPI**. 

Simply follow the steps below to get a free weather API key from OpenWeather and set it up in Location Weather.

![How to Get & Activate Weather API Key from OpenWeather or Weather APIv](https://locationweather.io/wp-content/uploads/2026/03/How-to-Get-Activate-Weather-API-Key-from-OpenWeather-or-Weather-API-1024x664.webp)

1. First, click **Location Weather** in your WordPress admin sidebar.
2. Click the **Settings**panel of Location Weather.
3. Navigate to the **Weather API Key** section.
4. Click **Get your API key** to visit the signup page of **OpenWeather**. Create an account with your email, generate the API key, copy it, and paste it into the **OpenWeather API Key** field.
5. You can also add an API key from WeatherAPI using the same process.
6. Finally, click **Save Changes** to activate the API.

You can also check out the full [guidelines about the Weather API key plans and setup](https://locationweather.io/api-integration-guidelines/) here.

## Step 3: Create a Weather Accordion Template

Now, it’s time to create and display your weather data in an accordion. And, you can do it very nicely and professionally with the Visual Weather Accordion block. It allows you to display weather data within collapsible accordion sections. 

With its 4 pre-designed beautiful templates, you can choose one, and present current weather with OpenWeather or Windy Radar Map, while showcasing daily & hourly forecasts, or other data points in an organized, expandable format, saving space and improving user experience.

Simply follow the steps below or read the [guides](https://locationweather.io/docs/weather-accordion/)to create your first weather accordion block in minutes.

#### You can create a weather accordion in two simple ways.

- Choosing a ready-made accordion pattern from the [Rich Patterns Library](https://locationweather.io/patterns/)
- Directly choosing an accordion block in the Gutenberg Editor.

### Choose a ready accordion pattern from the Rich Patterns Library:

![How to choose Ready Accordion from Weather Patterns Library](https://locationweather.io/wp-content/uploads/2026/03/How-to-choose-Ready-Accordion-from-Weather-Patterns-Library-1024x712.webp)

1. Go to any WordPress page or post and open the **[Weather Pattern Library](https://locationweather.io/patterns/)** to import ready accordion patterns.
2. Search for or find the **Weather Accordion**patterns.
3. Click **Import.**

![How to Create a Weather Accordion to Display Weather Forecasts in WordPress](https://locationweather.io/wp-content/uploads/2026/03/How-to-Create-a-Weather-Accordion-to-Display-Weather-Forecasts-in-WordPress.webp)

4. Find a whole ready-made accordion template.

5. Find the dedicated panels to customize as you wish.

### Find the weather accordion block in the Gutenberg Editor

![How to Create a Weather Accordion to Display Weather Forecasts](https://locationweather.io/wp-content/uploads/2026/03/How-to-Create-a-Weather-Accordion-to-Display-Weather-Forecasts.webp)

1. Go to any **WordPress page or post**you’re editing and click the**‘+’** button to add a new block.
2. Search for “**Weather Accordion”** or find it under “**Location Weather.**”
3. **Click** it to **add** it to your page and pick a style from four different templates.
4. Find the dedicated panels to customize as you wish.

## Step 4: Customize and Publish

Now, it’s time to customize the accordion block as you wish. Simply click any panel or element to open the customization panel.

- To choose your desired Accordion Templates, just slide, choose one from the 4 stylish layouts, and add a style to it as you want. 
- Moreover, you can enable a custom weather search bar if needed.

![](https://locationweather.io/wp-content/uploads/2026/03/How-to-Choose-Different-Weather-Accordion-Templates-4.webp)

- Set your location, forecast type, and measurement units
- Configure the data metrics you want to show or hide, such as Current Weather, Additional Data, and Weather Map

![](https://locationweather.io/wp-content/uploads/2026/03/How-to-Configure-Weather-Map-Prefreneces.webp)

- Customize the Accordion styles from the Accordion Preference panel. You can easily set Default First Open, Multiple Open, Items per Page, and the Load More button from here.

![](https://locationweather.io/wp-content/uploads/2026/03/How-to-Configure-Weather-Accordion-Preferences.webp)

✅ Pro Tip: Keep in mind to set the Default First Open, Multiple Open, Toggle Icons, Titles, and Items per Page for the best UX.

- Finally, you can easily style content, toggle icons, borders, background, and additional data from the Advanced Style Settings

Once you’ve done your customization, Preview and click **Publish**/ **Update**.

Your Weather Accordion is now live—interactive, clean, and user-friendly!

Let’s see a [live demo](https://locationweather.io/blocks/#demoId40) of how the weather accordion will be displayed on your WordPress website.

## Final Words

Displaying weather forecasts in long tables or scattered layouts can make your pages cluttered and hard to navigate. Using the Weather Accordion helps to organize current weather, forecasts, and maps into clean, collapsible sections that keep your content compact and user-friendly.

So, why wait? Download [Location Weather](https://locationweather.io/pricing/?ref=335) today, start showcasing interactive weather data **[Accordion](https://locationweather.io/blocks/#demoId40)**on your WordPress site in minutes — no coding required.

Get Location Weather

Live Weather Accordion

---

![Rubel Miah](https://secure.gravatar.com/avatar/b1a4babfd858c03c90d6eeef9bdee4ad2c42a656ffa656f9e713ac4e5d23c6c4?s=96&d=mm&r=g)

Rubel Miah

## Share this blog

## If you like this blog share it with your friends.

## Comments

### Leave a Reply [Cancel reply](https://locationweather.io/display-weather-data-accordion-in-wordpress/#respond)

![](https://locationweather.io/wp-content/uploads/2026/04/newsletter_6548097-1.svg)

## Join the Growing

## ShapedPlugin Family

## No spam – updates, tips & tricks to help.

![](https://locationweather.io/wp-content/uploads/2026/04/Facebook-Location-Weather.webp)

## Add Reliable Weather and Air Quality Insights to Guide Customer Buying and Travel Decisions.

## Increase sales of weather-dependent goods and services by helping customers use weather data in their buying or travel decisions.

[Get Location Weather Now](https://locationweather.io/pricing/)

14-Day No-Question-Asked [Refund Policy](https://shapedplugin.com/refund-policy/)

![](https://locationweather.io/wp-content/uploads/2026/03/Logo-1-1-1.svg)

## 4.9

![](https://locationweather.io/wp-content/uploads/2026/03/Frame-63-2-2.svg)

## [on](https://www.trustpilot.com/review/shapedplugin.com?stars=5)

![](https://locationweather.io/wp-content/uploads/2026/03/Source-Logo.svg)

## **Location Weather**™ is the most powerful and easy-to-use weather forecast plugin for WordPress that allows you to create and display accurate weather forecasts.

## **Address**

## **ShapedPlugin **is a limited liability company (LLC). The address of the company’s registered office is 1207 Delaware Avenue #778, Wilmington, DE 19806, USA.

## **Subscribe our newsletter**

## No spam—just updates, tips & tricks to help you win.

## THE COMPANY

## FOLLOW US ON

## Our Products

## resources

## © 2019-2026 Location Weather. Made with ❤️ by**ShapedPlugin, LLC**

![](https://locationweather.io/wp-content/uploads/2026/03/Secure-Payment-Container-1.svg)

---

Source: https://locationweather.io/display-weather-data-accordion-in-wordpress/
