Snippet description

#314070
  • Resolved Cerebrovaskulární ambulance David
    Rank Math pro
    Content AI Creator

    Hello , I want to use snippet description inside hook for search page excerpts
    what value should I use in the hook?

    $my_custom_excerpt = get_the_custom_value (?????);
    (description whilst in the loop)
    I used “rank_math_description” in ajax pro and it works there, but not in the search page hook.

    Thank you for help
    David

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    I’m not quite sure whether I fully understand the question. But I’ll do my best and please let me know if I misunderstood.

    Could you please confirm if you need to add Rank Math’s meta description into your search page’s excerpt field?

    If it still seems I am missing something, please share some examples or a screenshot so we can further identify your objective.

    Looking forward to helping you.

    Hello, I already found it ..,
    it was: RankMath\Helper::get_post_meta( ‘description’, $post_id );

    Have nice day
    David

    Prabhat
    Rank Math agency

    Hello,

    Glad that helped.

    Please feel free to get in touch if you require any further assistance.

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

The ticket ‘Snippet description’ is closed to new replies.