<?php
/*
Plugin Name: CatTitle
Plugin URI: http://www.flatpress.org/
Description: Show category name in html meta
Author: NoWhereMan
Version: 1.0
Author URI: http://www.nowhereland.it/
*/
function plugin_cattitle_head() {
global $fp_params;
if (isset($fp_params['cat'])) {
$category_names = entry_categories_get('defs');
if (isset($category_names[ $fp_params['cat'] ]))
echo '<meta name="Title" content="' . $category_names[ $fp_params['cat'] ] . '" />';
}
}
add_action('wp_head', 'plugin_cattitle_head');
$fp_params['category'] $fp_params['cat']I think this plugin could be changed to give the SEO plugin some members asked for some weeks ago, what do you think NWM?
Posted By: NoWhereManit could be extended with other METAs too.
<?php
/*
Plugin Name: CatTitle
Plugin URI: http://www.flatpress.org/
Description: Show category name in html meta
Author: NoWhereMan
Version: 1.0Author
URI: http://www.nowhereland.it/
*/
function plugin_cattitle_head()
{
global $fp_params;
if (isset($fp_params['category'])) {
$category_names = entry_categories_get('defs');
if (isset($category_names[ $fp_params['category'] ])) { echo '<meta name="Title" content="' . $category_names[ $fp_params['category'] ] . '" />'; }
else { echo '<title>' . $pagetitle . '»' . $flatpress.TITLE . '</title>';}
}}
add_action('wp_head', 'plugin_cattitle_head'); ?>$ category_name [$ fp_params [ 'cat']] of plugin-cattitle and print it in the body of the page?. This way I can give info to the search engine. If you could add a short description, it would be perfect.It looks like you're new here. If you want to get involved, click one of these buttons!