<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: function thematic_create_doctype()</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sun, 26 May 2013 04:32:48 +0000</pubDate>

<item>
<title>helgatheviking on "function thematic_create_doctype()"</title>
<link>http://themeshaper.com/forums/topic/function-thematic_create_doctype#post-25944</link>
<pubDate>Thu, 15 Mar 2012 23:04:37 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">25944@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;good catch scott.  i've edited chris' code.
&#60;/p&#62;</description>
</item>
<item>
<title>ScottNix on "function thematic_create_doctype()"</title>
<link>http://themeshaper.com/forums/topic/function-thematic_create_doctype#post-25943</link>
<pubDate>Thu, 15 Mar 2012 23:01:31 +0000</pubDate>
<dc:creator>ScottNix</dc:creator>
<guid isPermaLink="false">25943@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You are correct about the error. Try,&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function my_create_doctype($content) {
    $content = &#38;#39;&#38;lt;!DOCTYPE html PUBLIC &#38;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&#38;quot; &#38;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#38;quot;&#38;gt;&#38;#39; . &#38;quot;\n&#38;quot;;
    $content .= &#38;#39;&#38;lt;html xmlns=&#38;quot;http://www.w3.org/1999/xhtml&#38;quot;&#38;#39;;
    return $content;
}
add_filter(&#38;#39;thematic_create_doctype&#38;#39;, &#38;#39;my_create_doctype&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Swapped out apply_filter with add_filter
&#60;/p&#62;</description>
</item>
<item>
<title>fahdi on "function thematic_create_doctype()"</title>
<link>http://themeshaper.com/forums/topic/function-thematic_create_doctype#post-25942</link>
<pubDate>Thu, 15 Mar 2012 22:02:23 +0000</pubDate>
<dc:creator>fahdi</dc:creator>
<guid isPermaLink="false">25942@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;This filter is giving me an internal server error. Am I missing something?
&#60;/p&#62;</description>
</item>
<item>
<title>Marfalkov on "function thematic_create_doctype()"</title>
<link>http://themeshaper.com/forums/topic/function-thematic_create_doctype#post-21096</link>
<pubDate>Fri, 06 May 2011 20:50:02 +0000</pubDate>
<dc:creator>Marfalkov</dc:creator>
<guid isPermaLink="false">21096@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks Chris! :)
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "function thematic_create_doctype()"</title>
<link>http://themeshaper.com/forums/topic/function-thematic_create_doctype#post-2532</link>
<pubDate>Tue, 24 Mar 2009 09:01:54 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">2532@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;return the string .. take a look here:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function my_create_doctype($content) {
    $content = &#38;#39;&#38;lt;!DOCTYPE html PUBLIC &#38;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&#38;quot; &#38;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#38;quot;&#38;gt;&#38;#39; . &#38;quot;\n&#38;quot;;
    $content .= &#38;#39;&#38;lt;html xmlns=&#38;quot;http://www.w3.org/1999/xhtml&#38;quot;&#38;#39;;
    return $content;
}
add_filter(&#38;#39;thematic_create_doctype&#38;#39;, &#38;#39;my_create_doctype&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Doesn't make sense 'cause it's still the original unchanged content. So just change $content to your needs.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>joeysantiago on "function thematic_create_doctype()"</title>
<link>http://themeshaper.com/forums/topic/function-thematic_create_doctype#post-2530</link>
<pubDate>Tue, 24 Mar 2009 08:39:49 +0000</pubDate>
<dc:creator>joeysantiago</dc:creator>
<guid isPermaLink="false">2530@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;hi everyone... i'm trying to filter this function in order to switch to xhtml 1.1 strict, but i haven't understood how should i write this function: should it return a string, or use an echo, or...?&#60;/p&#62;
&#60;p&#62;sorry i'm an absolute noob on wordpress! :)
&#60;/p&#62;</description>
</item>

</channel>
</rss>
