Dynamic Meta variable
-
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 seopressfunction 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]
The topic ‘Dynamic Meta variable’ is closed to new replies.