WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Retrieving category description translated (2 posts)

  1. alvise68
    Member
    Posted 1 month ago #

    <?php echo category_description(3); ?>
    this retrieves only the default language category description how do i retrieve the translated description of the language I'm browsing in?
    this the site http://www.sarisrl.com/en/products/

    thanks for your help

    https://wordpress.org/plugins/polylang/

  2. Chrystl
    Member
    Posted 1 month ago #

    Hello,

    Try this:

    <?php echo category_description(pll_get_term (3)); ?>

    For more information, you should read this:

    http://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/

Reply

You must log in to post.

About this Plugin

About this Topic