Celestial Web Development

Celestial Lunar Phase Plugin

Add a beautiful live moon phase display to your WordPress website.

The Celestial Lunar Phase Widget displays the current lunar phase with a matching image, phase name, moonrise time, moonset time, astronomical dawn and dusk, and illumination percentage. Perfect for astronomy sites, educators, outreach groups, and space enthusiasts.

What the Plugin Displays

  • Current lunar phase
  • Matching moon phase image
  • Phase name
  • Moonrise time
  • Moonset time
  • Astronomical dawn and dusk
  • Illumination percentage
  • Location-based data

What’s New in Version 2.2

  • Removed the WeatherAPI requirement
  • Added local astronomy calculations
  • Added location lookup by city
  • Added browser-based “Use My Current Location” support
  • Added a timezone dropdown selector
  • Improved moonrise and moonset calculations
  • Added astronomical dawn and dusk times
  • Added admin notices for existing installs that need location setup
  • Improved setup experience for new users

Key Features

  • No API key required
  • Local astronomy calculation engine
  • Easy shortcode: [celestial_lunar_phase_widget]
  • Gutenberg block support
  • Clean, modern moon phase display
  • Local moon phase images bundled with the plugin
  • Location lookup tool
  • Use My Current Location button
  • Timezone dropdown
  • Simple setup screen

Location Setup

Version 2.2 and later use local astronomy calculations instead of a third-party lunar data API. After installing or updating, visit the plugin settings page and configure your location.

  1. Go to Settings → Celestial Lunar Phase Widget
  2. Use the location lookup tool, or click Use My Current Location
  3. Verify that latitude, longitude, and timezone are correct
  4. Save your settings

Existing installations may show an admin notice until location settings are completed.

Installation

  1. Upload the plugin ZIP in Plugins → Add New
  2. Activate the plugin
  3. Go to Settings → Celestial Lunar Phase Widget
  4. Configure your location and timezone
  5. Add the block or shortcode to any page, post, or widget area

Shortcode

[celestial_lunar_phase_widget]

[celestial_lunar_phase_widget title="Tonight's Moon" show_credit="no"]

Screenshots

Widget Display

Setup Screen

Support

Need help or want to report an issue?

  • Submit bug reports
  • Request new features
  • Get help with setup
  • Request customization

Please include your WordPress version, plugin version, theme, location settings, timezone, and screenshots when reporting issues.

Frequently Asked Questions

Does this plugin require an API?

No. Version 2.2 and later perform lunar and solar calculations locally on your WordPress server. No WeatherAPI account or API key is required.

Why do I need to configure a location?

Moonrise, moonset, dawn, dusk, and illumination depend on your latitude, longitude, timezone, and date. The plugin needs location settings to calculate accurate local results.

How accurate are the calculations?

The plugin uses local astronomy calculations based on your configured location, timezone, and date. Results should be close to major astronomy references, though small differences may occur because services use different horizon, refraction, elevation, and calculation assumptions.

Does it work with blocks?

Yes. You can use either the Gutenberg block or shortcode.

Can I use my current location?

Yes. The settings screen includes a Use My Current Location option that can fill in your coordinates and timezone.

Can I customize it?

Yes. Celestial Web Development offers customization, integration, and plugin development services.

About Celestial Web Development

Celestial Web Development specializes in WordPress development, customization, plugin development, and hosting solutions.

Email: john@celestialwebdevelopment.com

Live Example

Current Lunar Phase
Waning Gibbous
Waning Gibbous
Elgin, Minnesota, United States
Moonrise11:50 PM
Moonset11:20 AM
Dawn3:10 AM
Dusk11:16 PM
Illumination71%
Calculated locally by Celestial Web Development for 2026-07-05. Times use America/Chicago. Dawn/Dusk are astronomical twilight. Results may vary from other services due to calculation and horizon assumptions.