Output a Posts’ SEO Score and Keywords On The Front End

#111501
  • Resolved Tim Spino
    Rank Math business
    Content AI Creator

    Hi,

    I’m trying to find a way to output a Posts’ SEO Score and Keywords on the front end. I have a plugin, Toolset Types & Views and with this I can loop through posts and output their details on the front-end. So I am creating a table on the front end that displays all my posts’ title’s in tabular form. In this table I want to add the Posts’s SEO Score and keywords. Any ideas on how I might be able to do this?

    Thanks,

    Tim

Viewing 5 replies - 1 through 5 (of 5 total)
  • Tim Spino
    Rank Math business
    Content AI Creator

    Any help here?

    Tim Spino
    Rank Math business
    Content AI Creator

    I think I have figure this out using the following code in my functions file:

    // shortcode to show RankMath SEO Score
    add_shortcode(‘rankmathscore’, ‘rankmathscore_shortcode’);
    function rankmathscore_shortcode () {
    $content = get_post_field( ‘rank_math_seo_score’, $post->ID );
    return $content;
    }

    // shortcode to show RankMath Focus Keywords Score
    add_shortcode(‘rankmathfocuskeyword’, ‘rankmathfocuskeyword_shortcode’);
    function rankmathfocuskeyword_shortcode () {
    $content = get_post_field( ‘rank_math_focus_keyword’, $post->ID );
    return $content;
    }

    Hello,

    Apologies for the delayed response.

    Did the code you shared work for you as you wish?

    If you have any further question(s), please let us know. Thank you

    Tim Spino
    Rank Math business
    Content AI Creator

    uhhh, yeah. So is 2 weeks really the typical response time? I was considering moving all my client sites to RankMath, but something like this causes serious concnern.

    Hello,

    We apologize for the extreme delay in getting back to you.

    There have been many pending tickets due to major updates of WordPress and Rank Math that our support might have overlooked your ticket. We have also been giving priority to users under PRO, and once the tickets are under control, we will get back to resolving FREE tickets in under 24 hours again.

    Thank you for your patience, and please don’t hesitate to contact us by creating a new ticket to assist you with anything else.

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

You must be logged in to reply to this ticket.