This free WordPress plugin displays the XML-data from islamicfinder.org in a nice style on your website as a WordPress widget! The prayer times widget displays the exact times for fajr, sunrise, duhr, asr, maghrib and isha, fully translatable for each widget in the front end. This widget offers a lot of customization and displays your city, country, the Gregorian or the Hijri date.
Attention: this plugin displays the prayer times from islamicfinder.org, so for this to work you need the full XML-URL from islamicfinder.org. Please refer to the tutorial.
Download free WordPress Plugin on the WordPress Plugin Repository:
Prayer times plugin tutorial
1. Please download the widget as a zip file.
2. Go to your WordPress backend and select “Plugins” -> “Add new” and then “Upload plugin”. Select the zip-file on your hard drive and press “Install now”.
3. After seeing the message “Plugin installed successfully”, click on “Activate plugin” or return to your plugin list and click “Activate” on the Owlish prayer times plugin.
4. Go to “Appearance” -> “Widgets” and drag the Owlish prayer times widget to your sidebar.
5. Now you can make the necessary changes you want to the widget. For the XML-URL please refer to the next part. Please do activate the “Allow back link to islamicfinder.org” checkbox, otherwise the plugin won’t output anything.
Click on save and your widget is fully configured and online!
For the XML-URL to display the correct prayer times for your desired location, please open first the islamicfinder.org homepage.
If you see your city correctly, please click your city name, otherwise click on the “wrong location” link and select your desired prayer times location.
Attention: Please do at this point *not* click on the banner “Add daily prayer times…” it will not give the XML output!
After selecting your city, you see the prayer schedule window with this weeks prayer times for your location.
At this point you can change the juristic or the calculation method according your needs.
When the prayer times are configured as you need, now click on the “Add daily prayer times to your website” banner, located on the right side near the “Search another city” field.
On the next window, click on the 3.XML-format link located at the upper area of the page
Now you see your whole XML-URL below the text “XML Format For Daily Prayer Times”. Please copy the whole URL from the text box and enter it in your Owlish prayer times widget “URL” text area and save the widget.
Troubleshooting your free WordPress prayer times widget
Error message: Please check your Owlish prayer times widget settings (allow link back to islamicfinder.org)
This message means, you have not ticked the check box “Allow back link to islamicfinder.org”. This is required for this widget to output anything.
Error message: Please set prayer time URL
You have not set up the prayer times URL from islamicfinder.org. Please refer to the tutorial above.
Error message: XML-error in output
Mostly the URL you have set as the XML prayer times URL is not correct. Maybe you did not copy the whole URL? Please try again and refer to the tutorial above.
At the moment the XML output generated by islamicfinder.org is wrong. I was already in contact with the support, but I cannot say when it will be repaired. In the meantime you can add the missing paramenters by yourself. The XML URL is missing 3 important parameters:
You see in your XML URL this part:
... /prayer_service.php?country=YOURCOUNTRY&city=YOURCITY&state=XX&zipcode=&latitude=&longitude=&timezone=& ...
As you can see, the parameters are missing (there is the parameter name, then = and then the &. The parameter value is missing between the = and &)
But in the previous step you see this values. So beginning from the frontpage, you click your city name in the short prayer times box on the page. In the next page you can see the parameters for latitude, longitude and timezone filled out at the adress bar of your browser. Copy these values into your XML URL.
It should look like this:
... /prayer_service.php?country=YOURCOUNTRY&city=YOURCITY&state=XX&zipcode=&latitude=62.2333&longitude=25.7333&timezone=2& ...
(Of course replace with your values) And your prayer times should be displayed properly. I am sorry for the trouble, I hope this gets repaired by the team of islamicfinder soon.
Error message: XML is containing not expected data
Your XML URL is not correct. Could it be that you selected the “Monthly prayer times URL” instead of the daily? Please be aware, this plugin is only working with the daily prayer times.
Other possible errors
The city or the country name is not displayed correctly. For example, instead of umlauts the widget displays � exclamation marks.
This is an error from islamicfinder. In most cases it should be enough to change the � into the desired character directly in the XML-URL from the widget settings. Be careful though, not to change any more, in that case it can destroy the functionality from the widget and the prayer times will not be displayed correctly.
Error Message: Retrieving prayer data failed.
This is an uncommon error and can result from different problems. It means WordPress fails to retrieve the XML content via wp_remote_open from islamicfinder.org. This can be:
- you are installing on a local server without internet connection
- the islamicfinder.org website is temporary down
- your webhoster has the PHP setting of “allow_url_fopen” off AND cURL is not enabled on the server. In that case you have to contact your hoster
Did you like this free WordPress widget? Please rate it on the WordPress plugin directory and share it with your friends!
Please note: I am not in any way connected or working for islamicfinder.org, nor do I necessary express the views hold on the website. I provide this plugin without warranty, should islamicfinder.org some day decide to stop the XML-URL API functionality, I am not responsible for that and in that case this widget will stop working.
For any comments, feedback or suggestions, please use the comment function below this post!
Wish to donate for this plugin? More information can be found here: click me for more information