Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor hubaishan

    (@hubaishan)

    • activate the plugin
    • set date format to format with out hijri date
    • edit the theme of your site and put this code where you want Hijri date to appear echo date_i18n('_j _F _Y', timestamp);
      Where “_j _F _Y” the format you want you can also contain gregorian date in the same format like ‘_j _F _Y?? (j.m.Y)’
      “timestamp” the date you want to view in Hijri use time() to current timestamp.
    Thread Starter pikamo

    (@pikamo)

    hi,

    But the date is in pulings not in the theme.
    I mead a widget pluing for showing the cunrent date.

    Plugin Contributor hubaishan

    (@hubaishan)

    do step 1 and 2 then in you widget use this code to view the hijri date:

    echo date_i18n('_j _F _Y', time());

    you can also use:

    global $hijri;
    echo $hijri->hijri_date_i18n('_j _F _Y', time(),false);

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change only one date’ is closed to new replies.