Horoscope API
A plugin to fetch and display horoscope data
by Michael Edwards · github.com/smededwards/horoscope-api · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/smededwards/horoscope-api/archive/refs/heads/main.zipThis plugin integrates with the Horoscopes API to provide daily horoscope readings for one star sign (Gemini). Users can fetch horoscopes for yesterday, today, and tomorrow, with options for overriding the data in the admin area.
Table of Contents
Features
- Fetch daily horoscopes for a specified star sign (default: Gemini).
- View horoscopes for yesterday, today, and tomorrow.
- Override horoscope data for each day via the admin settings.
- Cached responses using WordPress transients for improved performance.
Installation
- Download the plugin files.
- Upload the
horoscope-apifolder to the/wp-content/plugins/directory of your WordPress installation. - Activate the plugin through the 'Plugins' menu in WordPress.
- Configure the settings as desired in the WordPress admin area.
Usage
To display the horoscope in your posts or pages, use the shortcode:
[horoscope]
You can override the default star sign and date by specifying the sign and date attributes:
[horoscope sign="Aries" date="YYYY-MM-DD"]
Admin Settings
After activating the plugin, navigate to Horoscope link in the WordPress admin area. Here, you can override the horoscope data for yesterday, today, and tomorrow for the selected star sign, by selecting the desired date and entering your own text in the provided text areas.