Hi Could please tell me how to add or update SEO Focus keyphrase programmatically? I used this code but it doesn’t work: Read more
Hi, This is the syntax to concatenate strings: $text1 = "hello"; $text2 = "world"; $text = $text1 . ' ' . $text2; For your code, use this: function UppercaseText($text_list) { $GlobalText = ""; $TableSize = sizeof($text_list);; for ($i = 0; $i < $TableSize; $i++) { $BigText[] = strtoupper($text_lRead more
Hi,
This is the syntax to concatenate strings:
1 2 3 4 | $text1 = "hello"; $text2 = "world"; $text = $text1 . ' ' . $text2; |
For your code, use this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | function UppercaseText($text_list) { $GlobalText = ""; $TableSize = sizeof($text_list);; for ($i = 0; $i < $TableSize; $i++) { $BigText[] = strtoupper($text_list[$i]); $GlobalText .= strtoupper($text_list[$i]); if ($i != $TableSize-1) { $GlobalText .= " "; } } //return $BigText; return $GlobalText; } $text_list = ['the', 'train', 'was', 'late']; var_dump(UppercaseText($text_list)); |
Have a good day
See less
Hi, I think Yoast SEO removed metakeywords. Please see this aricle : Meta keywords Why we don't use them - and neither should you use this key instead : _yoast_wpseo_focuskw You can update it like any post meta. This is the syntax: //the value of the focus key word $myFocusKeyword = "focus keyword eRead more
Hi,
I think Yoast SEO removed metakeywords. Please see this aricle :
Meta keywords Why we don’t use them – and neither should you
use this key instead :
You can update it like any post meta. This is the syntax:
I tested it and it works fine.
regards
See less