• Resolved sathyaseelan

    (@sathyaseelan)


    There is %%excerpt%% keyword to get short description. But I want full description. There is no keyword for full description. Is there any options to show full description in meta description?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    You can review the article here for a list of all of the available template variables that you can use — https://yoast.com/help/list-available-snippet-variables-yoast-seo/

    If the variable you need isn’t available, you may have to resort to a custom variable option.

    Thread Starter sathyaseelan

    (@sathyaseelan)

    In function.php

    // define the custom replacement callback
    function get_fulldes() {
    global $post;
    return $post->post_content;
    }

    // define the action for register yoast_variable replacments
    function register_custom_yoast_variables() {
    wpseo_register_var_replacement( ‘%%fulldes%%’, ‘get_fulldes’, ‘advanced’, ‘Full Description’ );
    }

    // Add action
    add_action(‘wpseo_register_extra_replacements’, ‘register_custom_yoast_variables’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use product full description as meta description’ is closed to new replies.