WordPress.org

Ready to get started?Download WordPress

Forums

wp-jalali
[resolved] converting latin page numbers to persian numbers (3 posts)

  1. otoraby
    Member
    Posted 8 months ago #

    Hi there!

    How can I convert latin page numbers (which are made by <!--nextpage--> code) to persian numbers.

    http://wordpress.org/plugins/wp-jalali/

  2. mani_monaj
    Member
    Plugin Author

    Posted 8 months ago #

    The wp_link_pages function has a filter with the same name (look here).

    You can add a filters to your theme's functions.php file to convert the numbers on the fly. Something like this:

    if (function_exists("farsi_num")) {
      add_filter("wp_link_pages","farsi_num",10);
    }

    I have not tested it myself.

  3. otoraby
    Member
    Posted 8 months ago #

    Great! It works like a charm.
    Thank you!

Reply

You must log in to post.

About this Plugin

About this Topic