• Resolved skbrag

    (@larrygaaga)


    Hey! Please am looking for a way to include custom field like artists, lyrics, album, etc to my SEO tiled like I do in Yoast but can’t find my way. Please is this function in RankMath?

    The page I need help with: [log in to see the link]

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

    (@rankmath)

    Hello @larrygaaga,

    Thank you for contacting the support.

    You can use our %customfield(field-name)% variable:
    https://rankmath.com/kb/variables-in-seo-title-description/#num-39-custom-field-advanced

    Hope that helps.

    Thread Starter skbrag

    (@larrygaaga)

    I added %customfield(artist)% and nothing happened. Please what is the issue here?
    I have custom fields like artist, album, and lyrics but none is working.
    Please guide me more. Thanks

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @larrygaaga,

    The %customfield(artist)% should work if the artist is the metakey name stored in the postmeta table.

    Please confirm the metakey name is same by searching this key with post ID in the Database. Or if you don’t have an access to the Database then please try adding the following test code to your theme’s functions.php file:

    add_action( 'wp', function() {
        echo get_post_meta( 'POST_ID', 'artist', true ); // Replace POST_ID with the ID of the post.
        exit;
    } );

    Hope that helps. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Field help and support’ is closed to new replies.