Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

WP Moon phase widget readme

=== WP Moon Phase Widget ===
Contributors: moonorganizer
Tags: moonphase, moon, astronomy, astrology
Requires at least: 4.7
Tested up to: 5.3
Requires PHP: 5.6
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Moon phase widget for Wordpress

== Description ==
WP Moon Phase Widget allows you to add an awesome moon phase widget to sidebar or post.

## Key features

* Auto Geo detection
* Moon phase name and image
* Moon set and moon rise time
* Moon zodiac sign
* Ability to change the background color
* Ability to add a widget to a sidebar or a post (via shortcode)

You can learn more about moon phase [here](https://moonorganizer.com/en/moon-phase-for-today/)

## Usage

### In sidebar

You can add a widget as a standard WordPress widget.

1. Go to *Appearance > Widgets*
1. Find *WP Moon Phase Widget*
1. Add to sidebar
1. Add a title (optional)
1. Configure desired background color (default is white)

### In post/page

You can add a widget to post or page via shortcode:

    [mph-widget]

With specified background color:

    [mph-widget color="#ffffff"]

**You can use only one widget on-page. So if you add widget to post, delete it from the sidebar.**

== Installation ==
1. Upload "test-plugin.php" to the "/wp-content/plugins/" directory.
1. Activate the plugin through the "Plugins" menu in WordPress.
1. Place "do_action( 'plugin_name_hook' );" in your templates.

== Frequently Asked Questions ==
= A question that someone might have =
An answer to that question.

= What about foo bar? =
Answer to foo bar dilemma.

== Screenshots ==
1. The screenshot description corresponds to screenshot-1.(png|jpg|jpeg|gif).
2. The screenshot description corresponds to screenshot-2.(png|jpg|jpeg|gif).
3. The screenshot description corresponds to screenshot-3.(png|jpg|jpeg|gif).

== Changelog ==
= 0.2 =
* A change since the previous version.
* Another change.

= 0.1 =
* Initial release.

== Upgrade Notice ==
= 0.2 =
Upgrade notices describe the reason a user should upgrade

= 0.1 =
This version fixes a security related bug. Upgrade immediately.