This plugin is now hosted at WordPress.org. Please go there to download it (it can also be automatically installed from your Admin page).
This plugin is now hosted at WordPress.org. Please go there to download it (it can also be automatically installed from your Admin page).
41 responses to “Hebrew Dates in WordPress”
[…] code can be downloaded Hebrew Dates release page under the Software […]
[…] install, download the plugin (from here),activate, and […]
[…] Hebrew date! To use, you can either download the bleeding edge version or a stable build from the Hebrew Dates release page under the Software section. Once you have the .php file, simply place in your […]
[…] I’ve released a small fix to the HebrewDate plugin. The new version is 1.0.2, and is available, at the regular place. […]
Shalom Mike,
Thank you very much for updating this plugin. It was what introduced me to WordPress, and caused me to make the switch. If you need help with the documentation, I’d love to help. Also, will we be able to implement a feature that will allow for the display of occasions along with dates, such as Rosh Hodesh at the beginning of the month along with the date, as well as holidays when they occur? Thanks, and keep up the good work.
חודש טוב!
I’m glad you’re enjoying the plugin. I’ve thought about integration with a calender.. perhaps using the Hebcal perl module. The truth is, unless I decided to do something complicated (leining schedule, for example), it would be fairly trivial to add printouts for holidays to the output… lemme think about it, and the next time I have a few hours free, I’ll try and hack something out.
Do you have any thoughts on how to display it? That is, I can easily add a new function
getHebrewHoliday()
, but do you think it should be integrated into the existing filter applied tothe_date()
? My hunch is no, as Holidays are the type of information applied occasionally, and not necessarily as part of every printout, but you’re requesting the feature, so you get to tell me!Regarding documentation: please see the config screen, and the notes I wrote for the
currentHebrewDate()
API. Any improvements are welcome… I have a habit of getting lazy once the work is done, leaving the documentation somewhat incomplete.I’m thinking it would be best to add that output to the function that you can use to display the Hebrew date anywhere in a theme. Displaying it in the postmetadata would be too much. I haven’t had a look at the code yet, so I have no idea how things are structured.
Shalom,
I downloaded and activated this plugin in my wordpress 2.1 blog. How does it work? Should it put some
KosherJava’s response on his thread is correct.
The plugin attempts to replace all dates (but not times) with their Hebrew equivelant (or Hebrew + secular). The problem is that I don’t necessarily have access to the raw date information. For example, if I get “Jan 10th, 2000”, I can easily handle that. If, however, I get something like “1.10.2000”, should I treat that as Jan 1st or Oct 10? I may be able to extract the information from the configuration in WordPress… let me think about it for a few days.
×©×œ×•× ×•×ª×•×“×”
I noticed “a bug maybe” in WordPress 2.1. If I change in WordPress Dashboard Options, the way how date is shown, it doesn’t change it in theme, like in previous version of WordPress. Or I should check out chmod of my current WordPress theme files. 😀
But thanks anyway!
P.S. Is there a hebrew calendar plugin for WordPress?
Shalom Johnnie Boy,
Whether or not the date changes in your theme depends on what template tag is being used in your theme to uotput the time. From what I can tell, the Hebrew date plugin responds to the “the_time” tag, and there are a number of strings one can use to display both the time and date. The Codex has documentation on this.
[…] Visit […]
thx for this great plugin
[…] installed Hebrew Dates plugin, which I love. I can’t wait till I dig my feet in WordPress and actually start manipulating […]
Is it possible not to have the name of the mounth, just the number?
Thanks for a great plugin
It would be possible… but how would you do the numbering? Tishrei = 1, or Nissan = 1? 😉
If you want to try it, you can try replacing one of the types (probably either Ashkenaz or Sefard, depending on which you don’t use) with numbers.
Good luck.
thx for this great plugin
i activated the plugin but then my blog doesn’t work – help!
Leah,
Can you be a little more specific what happens? When you deactivate the plugin, does everything return to normal?
Hello,
Just installed the plugin , but I seem to be getting the wrong dat – it reverts the date back to 1961. HOw can I fix this
Thanks
bj… can you post a link? Are both the English and Hebrew dates wrong, or just one?
Both English and Hebrew dates are wrong. I’m using Hebrew wordpress version 2.3.2. When the plugin is not activated I get the correct date. When I activate the plugin, both dates go bate to 1961. you can look at http://www.yomilimud.com/moad/
Thanks
Hrmm… interesting. Can you tell me how the date is being displayed in your theme?
Hi Mike,
Not really, I’m using a theme that I downloaded form the net called “ElegantBlue” other then that I do not know. But any help will would be great as I would really like to have the hebrew date in my blog.
Thanks
bj
היי מייק
×›×שר ×× ×™ מפעיל ×ת התוסף ×”×•× ×ª×§×•×¢ לי על ת×ריך ×חד : ×›”×’ תמוז תשס”×—
×שמח ×× ×ª×•×›×œ לעזור לי ×‘×¢× ×™×™×Ÿ
תודה
דולב
שבוע טוב,
I hope you don’t mind that my response is in English; I don’t mind speaking in Hebrew, (or reading), but I find that the mistakes I make while speaking look much worse in print.
Without seeing your theme code, I can’t give you a definitive answer; what I can do is explain a little about how HebrewDates works, and maybe that will help you.
What happens is that we add a filter to “the_time” and “get_comment_date”. Based on that, we begin by attempting to parse the string with strtotime(). If that fails, we check if it’s a month, year or just year (for the archive pages).
If your date is being displayed in Hebrew already (including a Hebrew translation of the secular month), I don’t think this will work. I haven’t found a way to get the requested date directly from wordpress in a consistent way.
this is my time code:
the problem is that the time is the same time with all the posts.
I’m sorry but you wp does not published my php code …
this is the code:
שבוע טוב
Still nothing visible. Try replacing the <s with <, or perhaps email. The markup here is not bbcode, but regular HTML / php tags. I really should add a text mode, but I haven’t gotten around to it yet…
this is my function:
and now when I change my theme from kubrick to LetoPrime I can’t see the hebrew dates.
What can I do ?
OHHHH … this is not visable…
?php the_time(‘j בM, Y’) ?
this is without the
A little hack. I changed the following line:
add_filter(‘the_time’,’jewishDate’); to
add_filter(‘the_date’,’jewishDate’);
In my theme I use the_date for the full hebrew date, and the_time is left inact. I use to display the secular date in a variety of formats (like the example in the previous post).
Hi!
I change the php code from :
?php the_time(‘j בM, Y’) ?
to
add_filter(‘the_date’,’jewishDate’);
and now the date not workings…
please help me
Can someone send me the equivalent of August 23, 2007…om the Jewish calendar.
Thanks
marpaul@ptd.net
Hi Marian,
This is not exactly the right forum for those types of questions, but regardless, the 23rd of August, 2007 was the 9th of Elul, 5767 (until sunset; after that, it was the 10th).
with default theme of wordpress this plugin isn’t working? do you have a theme where you are sure it IS working with? would like to have the normal date & jewish date published after each other.
Right now have error like: Fatal error: Call to undefined function gregoriantojd() in …/wp/wp-content/plugins/hebrewdate.php on line 142
which is : $jd = gregoriantojd($month, $day, $year);
what’s wrong about that line? another theme doesn’t give that error – but doesn’t display the hebrew date.
thnx!
The function gregoriantojd() is part of PHP, and is available in PHP4 and PHP5. Is it possible that you’re still running php3?
just checked; running PHP Version 5.2.6. Would it have anything to do with ‘safe mode’ activated on the server?
Apparently, you need to have the calender extension installed (source: http://tickets.jomres.net/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=35).
you mean i have to have this installed on the server (as in ask the hosting company to add this php script)?
Yes (although it’s part of almost all PHP builds that I’ve seen)