Skip to content

Instantly share code, notes, and snippets.

@debojitkakoti
Forked from derpixler/easyseobox.php
Created January 17, 2014 13:14
Show Gist options
  • Save debojitkakoti/8473160 to your computer and use it in GitHub Desktop.
Save debojitkakoti/8473160 to your computer and use it in GitHub Desktop.
<?
#get_post_meta($post->ID, 'SeoHead', true)
$seo_box = 'H1 Headline: Keyword1, Keyword2, Keyword3, Keyword4, Keyword5';
$meta_values = explode(':',$seo_box);
if(isset($meta_values[1])){
$keywords = explode(',',$meta_values[1]);
$seo_box = '<ul>';
foreach($keywords as $keyword){
$seo_box .= '<li>'.$keyword.'</li>';
}
$seo_box .= '</ul>';
}
echo '<h1>'.$meta_values[0].'</h1>'.$seo_box;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment