/ Published in: PHP
Add this to functions.php and then you can call the focus keyword anywhere you want with:
<?php wpseoFocusKW();?>
<?php wpseoFocusKW();?>
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*--------------------------------------*/ /* Use WP SEO Focus Keyword in PHP /*--------------------------------------*/ { function wpseoFocusKW() { $focuskw = wpseo_get_value('focuskw', $post->ID); echo $focuskw; } }
URL: http://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-using-the-focus-keyword-in-php