Support » Plugin: Polylang » Is Polylang filtering comments_number function?

  • Resolved miguelcortereal

    (@miguelcortereal)


    As far as I can see get_comments_number() is filtered by Polylang returning the number of replies per language for a given post.

    However my theme uses comments_number( $zero, $one, $more ); instead.

    <?php printf(__('%1$s to “%2$s”', "suffusion"), comments_number(__('No Responses', "suffusion"), __('One Response', "suffusion"), __('% Responses', "suffusion")), get_the_title($post->ID));?>

    It always returns No Responses, because comments_number returns zero.

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Is Polylang filtering comments_number function?’ is closed to new replies.