Show Total Products Of Include WooCommerce Product Category

  • Resolved Sotiris
    Rank Math free

    How can i show in Product categories – Category Archive Descriptions the number of the total products that belongs on each category?

    example description : Example category has total 200 products

Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business


    Thank you for contacting Rank Math today.

    You can create a custom var that gets the number of products in the current products category by using the following filter:

     * Filter to add custom variables
    add_filter( 'rank_math/vars/replacements', function( $vars ) {
     return $vars;

    Looking forward to helping you. Thank you.

    Rank Math free

    Thank you Alberto.

    Rank Math business


    We are super happy that this helped you with your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.