• Resolved Dinh??

    (@dinhcode)


    Hi there,

    I have user wp_query. How to get echo Rank Math ( Title and Description ) of post in loop query.

    Thanks and regards!

Viewing 1 replies (of 1 total)
  • Plugin Author Rank Math SEO

    (@rankmath)

    Hello @dinhcode

    Thank you for contacting the support.

    Here is the code to get Title & Description by Post ID:

    Title: RankMath\Helper::get_post_meta( 'title', $post_id );
    Description: RankMath\Helper::get_post_meta( 'description', $post_id );

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Title and Description in Loop Query’ is closed to new replies.