• hi guys.
    i want to use localization while display pagination.but dont know where to use gettext function.any help?
    thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Do you want to use the localization only for pagination or for the whole website AND for pagination?
    Anyway, it’s the plugin or theme that is responsible for pagination. You should define what (plugin or theme) provides pagination in your case and then add the localization there.

    If you would like to create a multilingual website, you should use the plugin, for example, – https://wordpress.org/plugins/wp-multilang/ or a similar one. If pagination functionality is correct, then you’ll see translated pagination.

    Also, you can contact us via our contact form, and we’ll try to help you.

    Thread Starter majidazadi

    (@majidazadi)

    thanks.
    isnt it possible using the_post_paginate to localize numbers?

    @majidazadi Hi,

    You can use function (https://codex.wordpress.org/Function_Reference/the_posts_pagination), but the translated text will be visible only if you change WordPress localization (site language) or if use any multilanguage plugin.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘local pagination numbers’ is closed to new replies.