Description is not displayed in products and categories

#158232
  • Resolved Krovatmashinka
    Rank Math free

    Hello. Thank you for this product. But when setting up, I have a problem with the Description not being displayed in the products and categories. But in the plugin settings everything is specified.
    Here is what is specified in the plugin settings Купить %title% 🚗 в интернет магазине krovat-mashinka.ru Кровать в виде машины 🔥 понравится мальчику и девочке. but this is not available on the product page you can see for yourself – https://krovat-mashinka.ru/krovat-mashina-romack-junior-mercedes-s-podsvetkoj-far-5/ this is also a problem with product categories. I will be very much waiting for an answer.

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

    When we check that product page we see there is meta data added for description.
    Also the same title you described is included.

    Make sure you product is using the woocommerce product schema – https://rankmath.com/kb/woocommerce-product-schema/

    Could you give us a screenshot or screen recording of this from the backend where you have the settings as it seems to be working properly on the front end.

    Thanks.

    Hello,

    Thank you for that additional information, and sorry for the delay.

    It seems that the screenshots you have provided are the same. Could you please check?

    However, this is the order we follow to generate meta descriptions for your WooCommerce product:
    1. Content from SEO Description field
    If that is missing, then:
    2. WooCommerce Excerpt or Product Short Description
    If that is missing, then:
    3. Template From General Settings in WordPress Dashboard > Rank Math > Titles & Meta > Products
    If that is missing, then:
    4. Auto generated Content from the product page

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance.

    Hello.1-screen I send a description of the product in the plugin (settings) Screen 2-what is the actual description of the product

    1- https://disk.yandex.ru/i/YmJ0E9Vk4Ptg7Q
    2- https://disk.yandex.ru/i/YmJ0E9Vk4Ptg7Q

    Hello,

    Thank you for keeping in touch with us.

    It looks like you sent the same screenshots. Can you please share the other screenshot so we can further determine your issue?

    Thank you. We are looking forward to helping you.

    good day! I sent the correct links. 1-link to configure the plugin. 2-link how the product description setting looks like

    1-https://disk.yandex.ru/i/YmJ0E9Vk4Ptg7Q
    2-https://disk.yandex.ru/i/ZCHuV7ndf1sA3A

    Hello,

    Thank you for that additional information, and sorry for the delay.

    You can add the following filter to your theme’s functions.php file to force Rank Math to use the description defined globally for your products.

    /**
     * Use the Description from Global Setting, if the description is missing in the Post metabox
     */
    add_action( 'rank_math/frontend/description', function( $description ) {
     global $post;
     $desc = RankMath\Post::get_meta( 'description', $post->ID );
    
     if ( is_product()) {
     $desc = RankMath\Helper::get_settings( "titles.pt_{$post->post_type}_description" );
     if ( $desc ) {
     return RankMath\Helper::replace_vars( $desc, $post );
     }
     }
    
     return $description;
    });

    Here’s a screencast (using the Code Snippet plugin) for your reference:
    https://i.rankmath.com/LfvyyU

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance.

    Good afternoon! Thank you for your answer! Tell me in what place in the file functions.php post this code? The beginning of the file or the end?

    the screenshot of the photo does not load

    Hello,

    Please paste the code at the end of the functions.php file.

    Let us know if you need any further assistance.

    the code doesn’t work after I inserted it into the theme file. The description has not changed

    Hello,

    Thanks for getting back to us.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Description is not displayed in products and categories’ is closed to new replies.