Title: Astrology
Author: Prokerala
Published: <strong>2021 年 4 月 13 日</strong>
Last modified: 2026 年 3 月 23 日

---

搜索插件

![](https://ps.w.org/astrology/assets/icon-256x256.png?rev=2819586)

# Astrology

 作者：[Prokerala](https://profiles.wordpress.org/prokerala/)

[下载](https://downloads.wordpress.org/plugin/astrology.1.5.0.zip)

 * [详情](https://cn.wordpress.org/plugins/astrology/#description)
 * [评价](https://cn.wordpress.org/plugins/astrology/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/astrology/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/astrology/#developers)

 [支持](https://wordpress.org/support/plugin/astrology/)

## 描述

Turn your WordPress blog into a full astrology site, powered by [**Prokerala**](https://www.prokerala.com)‘
s astrology API.

#### Features

 * Free
 * Easy to setup

### Available Services

 * Daily Horoscope Predictions
 * Numerology Calculators
 * Daily Panchang Calculators
    - Panchang
    - Auspicious Period
    - Inauspicious Period
    - Choghadiya
 * Horoscope Calculators
    - Birth Details
    - Charts
    - Kundli
    - Mangal Dosha
    - Kaalsarp Dosha
    - Papasamyam
    - Planet Position
    - Sade-Sati
 * Marriage Matching Calculators
    - Kundli Matching
    - Nakshatra Porutham
    - Thirumana Porutham
    - Porutham
    - Papasamyam Check
 * Western Charts
    - Natal Chart
    - Transit Chart
    - Progression Chart
    - Solar Chart
    - Synastry Chart
    - Composite Chart

### Usage

 * Install and activate the plugin on your WordPress dashboard.
 * Enter you Prokerala API client id and client secret in the plugin settings page.
 * Create a blog post or a page and add the report form.

The reports form can be added to a page using the block editor or using shortcode.

#### Blocks

The plugin adds a new block name **Astrology Reports** to the block editor.

#### Shortcode

If you are unable to use the block editor, then you can also activate the plugin
using the short code `astrology`.

    ```
    [astrology report="REPORT_NAME"]
    ```

Where `REPORT_NAME` must be one of following

 * `AuspiciousPeriod`
 * `BirthDetails`
 * `Chart`
 * `Choghadiya`
 * `DailyPrediction`
 * `InauspiciousPeriod`
 * `KaalSarpDosha`
 * `Kundli`
 * `KundliMatching`
 * `MangalDosha`
 * `NakshatraPorutham`
 * `Numerology`
 * `Panchang`
 * `Papasamyam`
 * `PapasamyamCheck`
 * `PlanetPosition`
 * `Porutham`
 * `SadeSati`
 * `ThirumanaPorutham`
 * `WesternChart`
 * `CompatibilityChart`

_Shortcode attributes_

 * **`result_type`**
 * In calculators that support `basic` and `advanced` results, the result type can
   be forced using the `result_type` attribute. Settings this attribute will remove
   the corresponding input fields from the form.
 *     ```
       [astrology report="Kundli" result_type="advanced"]
       ```
   
 * **Available for**
    - Kundli
    - Panchang

#### Report Specific Options

#### Chart

 * **`chart_style`**
 * You can set the `chart_style` attribute to one of `north-indian`, `south-indian`
   or `east-indian` to force the result chart style. Setting this attribute will
   remove the corresponding input fields from the form.
 *     ```
       [astrology report="Kundli" chart_style="south-indian"]
       ```
   

Kundli

 * **`display_charts`**
 * The `display_charts` option allows showing _Rasi_ / _Navamsa_ chart in Kundli
   result. This will cost two additional API calls. The value of the attribute must
   be `lagna,navamsa`.
 *     ```
       [astrology report="Kundli" display_charts="lagna,rasi"]
       ```
   

DailyPrediction

 * **`date`**
 * By default, the `DailyPrediction` report will display predictions for the current
   date. If required, the default behaviour can be changed by setting the `date`
   attribute to `yesterday`, `today` or `tomorrow`.
 * [astrology report=”DailyPrediction” date=”tomorrow”]
 * **`sign`**
 * By default, the DailyPrediction report will display predictions for all zodiac
   signs. You can use limit the result to a single zodiac sign using the `sign` 
   attribute. This may be used to create separate page for each zodiac sign or to
   insert advertisement between the result.
 * [astrology report=”DailyPrediction” date=”today” sign=”aries”]
 * **`type`**
 * By default, the DailyPrediction report shows predictions of the `general` type.
   You can customize the `type` of prediction displayed by using the `type` attribute.
   Allowed values are `general`, `career`, `health`, and `love`.
 * [astrology report=”DailyPrediction” date=”today” sign=”aries” type=”career”]

DailyLovePrediction

 * **`date`**
 * By default, the DailyLovePrediction report displays predictions for the current
   date. You can override this by setting the date attribute to yesterday, today,
   or tomorrow.
 * [astrology report=”DailyLovePrediction” date=”tomorrow”]
 * **`sign_one`**
 * By default, the DailyLovePrediction report displays predictions for `aries` as
   the primary partner. You can change the zodiac sign by using the `sign_one` attribute.
 * [astrology report=”DailyLovePrediction” date=”tomorrow” sign_one=”aries”]
 * **`sign_two`**
 * By default, the DailyLovePrediction report displays predictions for `aries` as
   the secondary partner. You can change the zodiac sign using the `sign_two` attribute.
 * [astrology report=”DailyLovePrediction” date=”tomorrow” sign_one=”aries” sign_two
   =”aries”]

Panchang

 * **`coordinate`**
 * By default, the `Panchang` report will display panchang for Ujjain, Maharashtra.
   If required, the default behaviour can be changed by setting attribute `coordinate`.
 * [astrology report=”Panchang” date=”tomorrow” coordinate=”23.179300,75.784912″]
 * **`tz`**
 * By default, the `Panchang` report will set timezone to UTC. If required, the 
   default behaviour can be changed by setting attribute `tz`. The `tz` attribute
   accepts any valid timezone identifier supported by PHP’s DateTimeZone class. 
   Examples include `UTC`, `Europe/London`, `America/Los_Angeles`, etc.
 * [astrology report=”Panchang” date=”tomorrow” coordinate=”23.179300,75.784912″
   tz=”Asia/Kolkata”]

WesternChart

 * **`report_type`**
 * By default, the `WesternChart` report displays the natal chart. The default behaviour
   can be modified by setting the `report_type` attribute. Allowed values are `natal-
   chart`, `transit-chart`, `progression-chart`, and `solar-return-chart`.
 * [astrology report=”WesternChart” report_type=”natal-chart” ]
 * **`display_options`**
 * By default, the `WesternChart` report displays the chart. The default behaviour
   can be modified by setting the `display_options` attribute. Allowed values are`
   chart`, `aspect-chart`, `planet-positions`, `planet-aspects` and `all`. You can
   specify multiple types by separating them with comma, or use the special `all`
   value to display everything.
 * [astrology report=”WesternChart” report_type=”natal-chart” display_options=”chart,
   aspect-chart,planet-positions,planet-aspects”]
 * [astrology report=”WesternChart” report_type=”natal-chart” display_options=”all”]

CompatibilityChart

 * **`report_type`**
 * By default, the `CompatibilityChart` report displays the synastry chart. The 
   default behaviour can be modified by setting the `report_type` attribute. Allowed
   values are `synastry-chart`, and `composite-chart`.
 * [astrology report=”CompatibilityChart” report_type=”synastry-chart” display_options
   =”all”]
 * **`display_options`**
 * By default, the `CompatibilityChart` report displays the chart. The default behaviour
   can be modified by setting the `display_options` attribute. Allowed values are`
   chart`, `aspect-chart`, `planet-aspects`, and `all`. You can specify multiple
   types by separating them with comma, or use the special `all` value to display
   everything.
 * [astrology report=”CompatibilityChart” report_type=”synastry-chart” display_options
   =”chart,aspect-chart,planet-aspects”]
 * [astrology report=”CompatibilityChart” report_type=”composite-chart” display_options
   =”chart,aspect-chart,planet-positions,planet-aspects”]
 * [astrology report=”CompatibilityChart” report_type=”synastry-chart” display_options
   =”all”]

Localization

You can use the following attributes to localize the form / result. View available
languages for each report from https://api.prokerala.com/docs#tag/Daily-Panchang

 * **`form_language`**
 * You can set the `form_language` attribute to one of `en`, `hi`, `ml`, `ta`, or`
   te` to set localization for forms.
    For western reports you can set the `form_language`
   attribute to one of `en`, or `de` for
 *     ```
       [astrology report="Kundli" form_language="en"]
       [astrology report="WesternChart" report_type="natal-chart" form_language="de"]
       ```
   
 * **`report_language`**
 * You can set the `report_language` attribute to one of `en`, `hi`, `ml`, `ta`,
   or `te` to add language select fields for forms.
    For western reports you can
   set the `report_language` attribute to one of `en`, or `de` for
 *     ```
       [astrology report="Kundli" report_language="en"]
       [astrology report="WesternChart" report_type="natal-chart" form_language="de"]
       ```
   

## 屏幕截图

[⌊Astrology Reports Block⌉⌊Astrology Reports Block⌉[

Astrology Reports Block

[⌊Plugin block editor demo⌉⌊Plugin block editor demo⌉[

Plugin block editor demo

## 区块

该插件提供了 1 个区块.

 *   Astrology Report

## 安装

 1. Go to Plugins -> Add New
 2. Search for “Prokerala Astrology”
 3. Click “Install”
 4. Click “Activate”
 5. Enter your Prokerala API credentials in the plugin’s settings page.
 6. That’s it. The `[astrology]` shortcode and `Astrology Reports` block will be available
    in your wordpress editor.

## 常见问题

### Do I need an account to use this plugin?

Yes, you need to signup for an account at https://api.prokerala.com to use this 
plugin.

### Do I need a paid subscription?

No, you can start using the plugin with our free subscription.

## 评价

![](https://secure.gravatar.com/avatar/16ae251df33a400159e8d60fe707a2bb2f1b98467ce5f197f99c86d512994f52?
s=60&d=retro&r=g)

### 󠀁[All-in-One Astrology Plugin That Works Well](https://wordpress.org/support/topic/all-in-one-astrology-plugin-that-works-well/)󠁿

 [abhishekraokr](https://profiles.wordpress.org/abhishekraokr/) 2025 年 7 月 26 
日

Covers all the major astrology tools in one place – Vedic, Western, Numerology, 
and daily horoscopes. Works well and integrated neatly into my WordPress based site.

![](https://secure.gravatar.com/avatar/425aca9a3869eec65ffad25d92319616def11605aab05ebe3de88d53d79bf88c?
s=60&d=retro&r=g)

### 󠀁[Support Promptly Guided Me During a Setup Issue](https://wordpress.org/support/topic/support-promptly-guided-me-during-a-setup-issue/)󠁿

 [georgekutty007](https://profiles.wordpress.org/georgekutty007/) 2025 年 7 月 23
日

When I first installed the plugin, the location field wasn’t working as expected.
I contacted support and they pointed out I needed to add my site’s URL correctly
to the authorized JavaScript origins in my API dashboard. Once I did that, everything
worked perfectly. Appreciate the quick guidance!

![](https://secure.gravatar.com/avatar/df9fd49960b1be27e8ccca11ee625fe21ef6dedacd54bfcfd0a9343d6cd0a5ba?
s=60&d=retro&r=g)

### 󠀁[Easy to Customize with Shortcode Options](https://wordpress.org/support/topic/easy-to-customize-with-shortcode-options/)󠁿

 [luhar123](https://profiles.wordpress.org/luhar123/) 2025 年 7 月 22 日

I used shortcodes to add different astrology features to my site, and the available
attributes made it easy to customize things like chart style and language. The plugin
documentation clearly explained how to use each option, so I could set it up just
the way I wanted.

![](https://secure.gravatar.com/avatar/03cdea94caa1a1bc70fe04f562b9254e72d3d4e21a401211c7e361bfaa1ad5af?
s=60&d=retro&r=g)

### 󠀁[Smooth Setup and Covers What I Needed](https://wordpress.org/support/topic/smooth-setup-and-covers-what-i-needed/)󠁿

 [vishnuprasath](https://profiles.wordpress.org/vishnuprasath/) 2025 年 7 月 21 
日

Nice plugin with everything I needed for my astrology site. Setup was smooth and
straightforward.

![](https://secure.gravatar.com/avatar/fb79ccf486a31069330de13812a22130f105240831f67890c7e561f22434cfb0?
s=60&d=retro&r=g)

### 󠀁[Reliable and Consistent Results](https://wordpress.org/support/topic/reliable-and-consistent-results/)󠁿

 [vidhyamol23](https://profiles.wordpress.org/vidhyamol23/) 2025 年 7 月 20 日

I’ve integrated several Vedic astrology features like Kundli, charts, etc on my 
website. The results are accurate and consistent, which helps a lot when I’m sharing
it to my users and preparing content based on them. It’s been reliable so far.

![](https://secure.gravatar.com/avatar/b7539d5b873c00ad3f7a8aae15fa21e1b8fd884be87e4c0fd3508ce09a44829b?
s=60&d=retro&r=g)

### 󠀁[Support Was Prompt and Responsive](https://wordpress.org/support/topic/support-was-prompt-and-responsive/)󠁿

 [jemins123](https://profiles.wordpress.org/jemins123/) 2025 年 7 月 18 日

I was trying to add the natal chart using the block editor but couldn’t find the
option. However, the support team helped by pointing me to the right shortcode and
also updated the plugin to include Western charts in the block list. Really appreciate
that!

 [ 阅读所有10条评价 ](https://wordpress.org/support/plugin/astrology/reviews/)

## 贡献者及开发者

「Astrology」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Prokerala ](https://profiles.wordpress.org/prokerala/)

[帮助将「Astrology」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/astrology)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/astrology/)，查看[SVN仓库](https://plugins.svn.wordpress.org/astrology/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/astrology/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/astrology/)。

## 更新日志

#### 1.5.0

 * Fixed array missing key

#### 1.4.9

 * Fixed array missing key

#### 1.4.8

 * Added new `display_planet_positions` shortcode for kundli
 * Added new astrology report called `DashaPeriod`
 * Resolved an issue caused by missing attributes in the forms of `ThirumanaPorutham`,`
   NakshatraPorutham`
 * Resolved an issues related with result type form

#### 1.4.7

 * Resolved an issue caused by an incorrect attribute name

#### 1.4.6

 * Resolved an issue occurred after fixing lint

#### 1.4.5

 * Added new `type` shortcode for Daily Prediction
 * Added support for Daily Love Horoscope Predictions

#### 1.4.4

 * Resolved an issue where `system` variable is undefined
 * Resolved an issue where `gender` variable is undefined
 * Added western charts to astrology report block

#### 1.4.3

 * Resolved an issue where `ayanamsa` variable is undefined

#### 1.4.2

 * Resolved an issue where the `tz` option could be set as an empty string, causing
   unexpected behavior

#### 1.4.1

 * Added new `tz` shortcode for Daily Panchang

#### 1.4.0

 * Added german language support for western reports
 * Fix options persistence on WordPress MU installations

#### 1.3.2

 * Added input details to western reports result
 * Fix undefined variable notice

#### 1.3.1

 * Fix stable tag

#### 1.3.0

 * Added support for western charts

#### 1.2.1

 * Fix Syntax error on PHP 7.x

#### 1.2.0

 * Added localization support
 * Added support for Daily Panchang

#### 1.1.4

 * Fix form date input changing to current date on result page
 * Fix layout issue with short prediction content

#### 1.1.3

 * Fix error message when saving shortcode without ayanamsa attribute
 * Fix interchanged default value for chart_type and chart_style

#### 1.1.2

 * Fix PHP 7.x compatibility

#### 1.1.1

 * Fix: Drafts missing after enabling plugin

#### 1.1.0

 * Added support for Daily Horoscope Predictions
 * Added support for Numerology
 * Added additional astrology services

#### 1.0.6

 * Fix datetimes reverting to UTC

#### 1.0.5

 * Location parameters where not being passed correctly
 * Minor inconsistencies and mistakes in template files
 * Fix PHP notices

#### 1.0.4

 * Fix php notices

#### 1.0.3

 * Added new shortcode attribute `form_action` to specify a different page url for
   result.

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.5.0**
 *  最后更新：**3 月前**
 *  活跃安装数量 **600+**
 *  WordPress 版本 ** 5.6 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.2.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/astrology/)
 * 标签
 * [astrology](https://cn.wordpress.org/plugins/tags/astrology/)
 *  [高级视图](https://cn.wordpress.org/plugins/astrology/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  10 条 5 星评价     ](https://wordpress.org/support/plugin/astrology/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/astrology/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/astrology/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/astrology/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/astrology/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/astrology/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/astrology/reviews/)

## 贡献者

 *   [ Prokerala ](https://profiles.wordpress.org/prokerala/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/astrology/)