Bulk Edit Title Anda Description Meta

#100523
  • Helo, i would like to know does rankmath have a feature to input title anda meta description as a bulk ? if yes, where i can access that menu ?

    i have 400 produk and need to change the meta title dan description.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for getting in touch with us.

    You can specify the title and description variables in Rank math > Titles & Meta > Product:
    img

    Then add the following filter to your theme 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;
    });
    

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    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 1 replies (of 1 total)

The ticket ‘Bulk Edit Title Anda Description Meta’ is closed to new replies.