• Resolved jqchen

    (@jqchen)


    Hi, I’m trying SEOpress for managing my keywords , meta title, description, etc. I find it that I could assign my own dynamic meta variable inside functions.php.

    I’m using an elegantthemes (Divi builder). I cached it with litespeed. The thing I would like to ask is: The dynamic variable that I’ve created can’t be loaded. I’m using a child-theme. So I pasted the code to my child-theme functions.php :

    //input custom meta to seopress

    function sp_titles_template_variables_array($array) {
    $array[] = ‘%%namapt%%’;
    return $array;
    }
    add_filter(‘seopress_titles_template_variables_array’, ‘sp_titles_template_variables_array’);

    function sp_titles_template_replace_array($array) {
    //escape your values!
    $array[] = esc_attr(wp_strip_all_tags(‘PT. Jagat Maya Internasional’));
    return $array;
    }
    add_filter(‘seopress_titles_template_replace_array’, ‘sp_titles_template_replace_array’);

    I get it from article at SEOpress. But it didn’t show up when I try to search it inside divi builder.

    Dynamic Meta Variable doesn’t show

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    we have been able to reproduce the issue.

    Note that you can use your new dynamic variable by manually entering it in the fields, it will work as expected in your source code.

    Thx

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    We are closing this ticket as this will be fixed in our next major update.

    Thank you!

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

The topic ‘Dynamic Meta variable’ is closed to new replies.