WordPress.org

Forums

Polylang
[resolved] Is Polylang filtering comments_number function? (2 posts)

  1. miguelcortereal
    Member
    Posted 1 year ago #

    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/

  2. miguelcortereal
    Member
    Posted 1 year ago #

    Don't bother to answer.

    Now its working perfectly, I suspect my cache plugin is the culprit.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Polylang
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.