<title> tag? Want to optimize it for SEO (or readability?) This plug-in will override wp_title() output with a statement of your choice. Version: 1.1.1 Author: Andrey Abramov Author URI: http://n0tablog.wordpress.com */ /* Copyright 2006 Andrey Abramov (email : PLUGIN AUTHOR EMAIL) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ add_filter('wp_title', 'title_override'); if (is_admin ()) { // add_action ('admin_head', 'title_override_admin_head'); // Add fields to GUI add_action ('edit_page_form', 'title_override_edit_title'); add_action ('save_post', 'title_override_save_title'); } function is_title_override () { // untested global $wp_query; $override_text = get_post_meta($wp_query->post->ID, 'title_override', true); if ($override_text) return true; else return false; } function title_override($content) { global $wp_query; if (is_page()){ $override_text = get_post_meta($wp_query->post->ID, 'title_override', true); if ($override_text) $content = $override_text; } return $content; } //--------------------------------------------edit_title function title_override_edit_title () { $title_override = ''; $meta = has_meta (intval ($_GET['post'])); if (count ($meta) > 0) { foreach ($meta AS $item) { if ($item['meta_key'] == 'title_override') $title_override = $item['meta_value']; } } ?>