<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WP Framework Forums Tag: semantic_title() - Recent Topics</title>
		<link>http://wpframework.com/forums/tags/semantic_title</link>
		<description>A blank WordPress Theme Framework</description>
		<language>en-US</language>
		<pubDate>Mon, 06 Sep 2010 22:17:18 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wpframework.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://wpframework.com/forums/rss/tags/semantic_title/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>Kruncher on "Bug? semantic_title"</title>
			<link>http://wpframework.com/forums/topic/bug-semantic_title#post-445</link>
			<pubDate>Mon, 31 May 2010 21:13:00 +0000</pubDate>
			<dc:creator>Kruncher</dc:creator>
			<guid isPermaLink="false">445@http://wpframework.com/forums/</guid>
			<description>&#60;p&#62;In &#34;semantic-classes.php&#34; at line 62 the code reads:&#60;br /&#62;
&#60;code&#62;else : wp_title( '&#38;amp;raquo', true, 'left' ); bloginfo( 'name' );&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;But I believe that a semi-colon is missing. Additionally I have found that the title appears better when 'right' is specified instead of 'left'.&#60;br /&#62;
&#60;code&#62;else : wp_title( '&#38;raquo;', true, 'right' ); bloginfo( 'name' );&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Many thanks,
&#60;/p&#62;</description>
		</item>
		<item>
			<title>saffyre9 on "Remove &#187; from title?"</title>
			<link>http://wpframework.com/forums/topic/remove-raquo-from-title#post-402</link>
			<pubDate>Thu, 29 Oct 2009 18:45:21 +0000</pubDate>
			<dc:creator>saffyre9</dc:creator>
			<guid isPermaLink="false">402@http://wpframework.com/forums/</guid>
			<description>&#60;p&#62;I've taken over management of a blog set up by someone else, and using WP Framework. I wanted to install the Headspace 2 plugin for more control over page titles and meta descriptions. I had to remove semantic_title from the &#38;lt;title&#38;gt; tag and change it back to wp_title to get it to work. However, the &#38;raquo; that WP Framework uses in title tags remains at the beginning of my page titles, so they look like&#60;/p&#62;
&#60;p&#62;&#38;gt;&#38;gt; Post title &#124; Some other words&#60;/p&#62;
&#60;p&#62;The code in the header looks like &#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;title&#38;gt;&#38;lt;?php wp_title(); ?&#38;gt;&#38;lt;/title&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;So I can't figure out where the &#38;raquo; is coming from and how to get rid of it. Help?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>benjamin on "Semantic Title Separator When There Is No Wordpress Tagline"</title>
			<link>http://wpframework.com/forums/topic/semantic-title-separator-when-there-is-no-wordpress-tagline#post-397</link>
			<pubDate>Tue, 13 Oct 2009 13:24:53 +0000</pubDate>
			<dc:creator>benjamin</dc:creator>
			<guid isPermaLink="false">397@http://wpframework.com/forums/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I've been using your framework for a few months now and enjoying it. I'm still finding new features to play with each time I use it. Currently, I'm building a site and not using the Wordpress tagline setting. This causes a problem in that it leaves the ndash separator after the title. I thought I'd be able to filter your semantic_title() function to change the $sep to equal nothing, but it didn't have a filter hook. I rewrote the function to check for a tagline. If there isn't one, it sets the value of $sep to &#34;&#34;. If there is a tagline, it adds a hook to filter it.&#60;/p&#62;
&#60;p&#62;The one issue I had in doing this was that I had to place the entire function in my custom_functions file and temporarily change the name of your semantic_title() function in semantic-classes.php; otherwise the page would fail to write. I thought I'd share the rewritten function here in case anyone else has had this issue come up. And to find out if I'm over-working it and that there's a simpler way.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Benjamin Gray&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
/**&#60;br /&#62;
 * semantic_title() - Generates semantic classes for the &#38;lt;title&#38;gt; tag with extra SEO love.&#60;br /&#62;
 *&#60;br /&#62;
 * @todo refactor code&#60;br /&#62;
 * @since - 0.2&#60;br /&#62;
 * @filter semantic_title&#60;br /&#62;
 */&#60;br /&#62;
function semantic_title( $sep = '&#38;ndash;' ) {&#60;/p&#62;
&#60;p&#62;	$desc = get_bloginfo( 'description' ); &#60;/p&#62;
&#60;p&#62;	if ( $desc != &#34;&#34;) : $sep = apply_filters( 'semantic_title_sep', $sep ); // Available filter: semantic_title_sep;&#60;br /&#62;
	else : $sep = &#34;&#34;;&#60;br /&#62;
	endif;&#60;/p&#62;
&#60;p&#62;	if ( is_single() ) : wp_title( '&#38;raquo;', true, 'right' ); bloginfo( 'name' );&#60;br /&#62;
	echo ( $sep );&#60;br /&#62;
	echo $desc;&#60;/p&#62;
&#60;p&#62;	elseif ( is_page() &#124;&#124; is_paged() ) : wp_title( '&#38;raquo;', true, 'right' );&#60;br /&#62;
	bloginfo( 'name' );&#60;br /&#62;
	echo ( $sep );&#60;br /&#62;
	echo $desc;&#60;/p&#62;
&#60;p&#62;	elseif ( is_author() ) : wp_title( 'Archives for ', true, 'left' );&#60;br /&#62;
	echo ( ' &#38;raquo; ' ); bloginfo( 'name' );&#60;br /&#62;
	echo ( $sep );&#60;br /&#62;
	echo $desc;&#60;/p&#62;
&#60;p&#62;	elseif ( is_archive() ) : wp_title( 'Archives for ', true, 'left' );&#60;br /&#62;
	echo ( ' &#38;raquo; ' ); bloginfo( 'name' );&#60;br /&#62;
	echo ( $sep );&#60;br /&#62;
	echo $desc;&#60;/p&#62;
&#60;p&#62;	elseif ( is_search() ) : wp_title('Search Results ', true, 'left' );&#60;br /&#62;
	echo ( ' &#38;raquo; ' ); bloginfo( 'name' );&#60;br /&#62;
	echo ( $sep );&#60;br /&#62;
	echo $desc;&#60;/p&#62;
&#60;p&#62;	elseif ( is_404() ) : wp_title( '404 Error Page Not Found ', true, 'left' );&#60;br /&#62;
	echo ( ' &#38;raquo; ' ); bloginfo( 'name' );&#60;br /&#62;
	echo ( $sep );&#60;br /&#62;
	echo $desc;&#60;/p&#62;
&#60;p&#62;	else : wp_title( '&#38;amp;raquo', true, 'left' ); bloginfo( 'name' );&#60;br /&#62;
	echo ( $sep );&#60;br /&#62;
	echo $desc;&#60;br /&#62;
	endif;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;function my_custom_title_sepr( $sep ){&#60;br /&#62;
	if($sep) {&#60;br /&#62;
		$sep = &#34; &#38;mdash; &#34;;&#60;br /&#62;
	}&#60;br /&#62;
		return  $sep;&#60;br /&#62;
}&#60;br /&#62;
add_filter( 'semantic_title_sep', 'my_custom_title_sepr' );&#60;/p&#62;
&#60;p&#62;?&#38;gt;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
