<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: WordPress as an Online Magazine</title>
	<atom:link href="https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Wed, 29 Apr 2026 13:07:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-699</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Mon, 21 Jan 2008 18:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-699</guid>
		<description><![CDATA[Well, first try putting a &quot;}&quot; at the end, like this: &lt;span style=&quot;font-style: italic;&quot;&gt;else { include(TEMPLATEPATH . ‘/single-cymraeg.php’); &lt;span style=&quot;font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&#160;&#160; It may be the problem.&lt;br /&gt;]]></description>
		<content:encoded><![CDATA[<p>Well, first try putting a &#8220;}&#8221; at the end, like this: <span style="font-style: italic;">else { include(TEMPLATEPATH . ‘/single-cymraeg.php’); <span style="font-weight: bold;">}</span></span>&nbsp;&nbsp; It may be the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aran</title>
		<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-698</link>
		<dc:creator><![CDATA[Aran]]></dc:creator>
		<pubDate>Mon, 21 Jan 2008 15:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-698</guid>
		<description><![CDATA[Hi there Matt,This looks like exactly what I&#039;ve been looking for (with increasing desperation!) - very many thanks for that.
 
&lt;p&gt;However, I&#039;m getting the same parse error as is listed above:&lt;/p&gt;&lt;p&gt; Parse error: syntax error, unexpected $end in /home/…./wp/wp-content/themes/mimbo2.2/single.php on line 7&lt;/p&gt;&lt;p&gt;I&#039;ve checked carefully that I have &#039;in&#039; instead of &#039;is&#039;...!&lt;/p&gt;&lt;p&gt;What I&#039;ve got is:&lt;/p&gt;&lt;p&gt;$post = $wp_query-&gt;post;if (in_category(&#039;8&#039;)) {include(TEMPLATEPATH . &#039;/single-saesneg.php&#039;);} else {include(TEMPLATEPATH . &#039;/single-cymraeg.php&#039;);&lt;/p&gt;&lt;p&gt;within the php brackets.&lt;/p&gt;&lt;p&gt; Is there anything obviously wrong to your more practiced eye?� I would be very grateful indeed for any pointers on this...:-)&lt;/p&gt;&lt;p&gt;Many thanks for your work and for any advice you can give,&lt;/p&gt;&lt;p&gt;Aran&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p>Hi there Matt,This looks like exactly what I&#8217;ve been looking for (with increasing desperation!) &#8211; very many thanks for that.</p>
<p>However, I&#8217;m getting the same parse error as is listed above:</p>
<p> Parse error: syntax error, unexpected $end in /home/…./wp/wp-content/themes/mimbo2.2/single.php on line 7</p>
<p>I&#8217;ve checked carefully that I have &#8216;in&#8217; instead of &#8216;is&#8217;&#8230;!</p>
<p>What I&#8217;ve got is:</p>
<p>$post = $wp_query->post;if (in_category(&#8216;8&#8242;)) {include(TEMPLATEPATH . &#8216;/single-saesneg.php&#8217;);} else {include(TEMPLATEPATH . &#8216;/single-cymraeg.php&#8217;);</p>
<p>within the php brackets.</p>
<p> Is there anything obviously wrong to your more practiced eye?� I would be very grateful indeed for any pointers on this&#8230;:-)</p>
<p>Many thanks for your work and for any advice you can give,</p>
<p>Aran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-669</link>
		<dc:creator><![CDATA[James]]></dc:creator>
		<pubDate>Mon, 14 Jan 2008 20:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-669</guid>
		<description><![CDATA[Hi Matt,

I thought you might know off the top of your head. I didn&#039;t expect you to do all that work. Thanks for the effort. I think you are correct. In fact, I initially found your post when I was doing the same thing you did in trying to solve the problem. I did post the question on the wordpress.org forum but never got a response. I thought there might be an easy way to do it without creating a page. I guess not. I&#039;ll just go forward with that solution. Thanks again for the help.

James]]></description>
		<content:encoded><![CDATA[<p>Hi Matt,</p>
<p>I thought you might know off the top of your head. I didn&#8217;t expect you to do all that work. Thanks for the effort. I think you are correct. In fact, I initially found your post when I was doing the same thing you did in trying to solve the problem. I did post the question on the wordpress.org forum but never got a response. I thought there might be an easy way to do it without creating a page. I guess not. I&#8217;ll just go forward with that solution. Thanks again for the help.</p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-647</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Fri, 11 Jan 2008 18:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-647</guid>
		<description><![CDATA[I looked around the Wordpress Codex, and I ran some Google searches. I don&#039;t think it is really possible.&lt;br /&gt;&lt;br /&gt;However, I found something that &lt;span style=&quot;font-style: italic;&quot;&gt;may&lt;/span&gt; work for you. What if you created a template file, and used query_posts to display the two categories. You could just create a Page, and set it to use the template you created. I&#039;m not sure if that would meet you needs, but it&#039;s the best I could think of right now (you may also want to try the official Wordpress forum).&lt;br /&gt;]]></description>
		<content:encoded><![CDATA[<p>I looked around the WordPress Codex, and I ran some Google searches. I don&#8217;t think it is really possible.</p>
<p>However, I found something that <span style="font-style: italic;">may</span> work for you. What if you created a template file, and used query_posts to display the two categories. You could just create a Page, and set it to use the template you created. I&#8217;m not sure if that would meet you needs, but it&#8217;s the best I could think of right now (you may also want to try the official WordPress forum).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-643</link>
		<dc:creator><![CDATA[James]]></dc:creator>
		<pubDate>Fri, 11 Jan 2008 02:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-643</guid>
		<description><![CDATA[Hi Matt,

Thanks for the info. Here is my question. What if I want a custom category.php page that combines 2 discreet categories (say 3 and 9).  i.e. the stuff that would be shown in an archive page if I typed in the URL /?cat=3,9. What would that custom category page by named category-(?).php. Is it possible to create a custom category page to do this. Your help is appreciated. Thanks. 

James]]></description>
		<content:encoded><![CDATA[<p>Hi Matt,</p>
<p>Thanks for the info. Here is my question. What if I want a custom category.php page that combines 2 discreet categories (say 3 and 9).  i.e. the stuff that would be shown in an archive page if I typed in the URL /?cat=3,9. What would that custom category page by named category-(?).php. Is it possible to create a custom category page to do this. Your help is appreciated. Thanks. </p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guerry</title>
		<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-587</link>
		<dc:creator><![CDATA[Guerry]]></dc:creator>
		<pubDate>Sat, 15 Dec 2007 02:07:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-587</guid>
		<description><![CDATA[I was mistaken. On my index.php (customized, default theme) 
it lacked this part of code in head  ---&gt; ?php wp_head(); ? /head


I&#039;m using the first code

$post = $wp_query-&gt;post;
if ( in_category(&#039;9&#039;) ) {
   include(TEMPLATEPATH . &#039;/template-venezuela.php&#039;);
} else {
   include(TEMPLATEPATH . &#039;normal-single.php&#039;);
}

Now, it works!

Your help has been my &quot;salvation&quot;
Thank you so much, Dear Matt!]]></description>
		<content:encoded><![CDATA[<p>I was mistaken. On my index.php (customized, default theme)<br />
it lacked this part of code in head  &#8212;&gt; ?php wp_head(); ? /head</p>
<p>I&#8217;m using the first code</p>
<p>$post = $wp_query-&gt;post;<br />
if ( in_category(&#8216;9&#8242;) ) {<br />
   include(TEMPLATEPATH . &#8216;/template-venezuela.php&#8217;);<br />
} else {<br />
   include(TEMPLATEPATH . &#8216;normal-single.php&#8217;);<br />
}</p>
<p>Now, it works!</p>
<p>Your help has been my &#8220;salvation&#8221;<br />
Thank you so much, Dear Matt!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-586</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Fri, 14 Dec 2007 22:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-586</guid>
		<description><![CDATA[Try using this code instead:

if (in_category(&#039;9&#039;)) {
include(TEMPLATEPATH . ‘/template-venezuela.php’);
} else {
include(TEMPLATEPATH . ‘/normal-single.php’);
}

Basically I changed &quot;is_category(9)&quot; to &quot;in_category(&#039;9&#039;)&quot;. Let me know if it works.]]></description>
		<content:encoded><![CDATA[<p>Try using this code instead:</p>
<p>if (in_category(&#8216;9&#8242;)) {<br />
include(TEMPLATEPATH . ‘/template-venezuela.php’);<br />
} else {<br />
include(TEMPLATEPATH . ‘/normal-single.php’);<br />
}</p>
<p>Basically I changed &#8220;is_category(9)&#8221; to &#8220;in_category(&#8216;9&#8242;)&#8221;. Let me know if it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guerry</title>
		<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-585</link>
		<dc:creator><![CDATA[Guerry]]></dc:creator>
		<pubDate>Fri, 14 Dec 2007 22:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-585</guid>
		<description><![CDATA[Thanks, Matt!

I run WP 2.2.1
I follow each step, but I get this error:

Parse error: syntax error, unexpected $end in /home/..../wp/wp-content/themes/default/single.php on line 7

I Try with:

if (is_category(9)) {
      include(TEMPLATEPATH . &#039;/template-venezuela.php&#039;);
} else {
   include(TEMPLATEPATH . &#039;/normal-single.php&#039;);
}

But not work, only normal-single.php is displayed.

I try with other plugs like Custom Post Templates (Ryan Boren), Post Templates by Category (Kaf Oseo), and nothing work. I don&#039;t understand .
Thakns!]]></description>
		<content:encoded><![CDATA[<p>Thanks, Matt!</p>
<p>I run WP 2.2.1<br />
I follow each step, but I get this error:</p>
<p>Parse error: syntax error, unexpected $end in /home/&#8230;./wp/wp-content/themes/default/single.php on line 7</p>
<p>I Try with:</p>
<p>if (is_category(9)) {<br />
      include(TEMPLATEPATH . &#8216;/template-venezuela.php&#8217;);<br />
} else {<br />
   include(TEMPLATEPATH . &#8216;/normal-single.php&#8217;);<br />
}</p>
<p>But not work, only normal-single.php is displayed.</p>
<p>I try with other plugs like Custom Post Templates (Ryan Boren), Post Templates by Category (Kaf Oseo), and nothing work. I don&#8217;t understand .<br />
Thakns!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-584</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Fri, 14 Dec 2007 16:08:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-584</guid>
		<description><![CDATA[Basically, yes. You create more than one single.php template (with different names), and include them in the template called &quot;single.php&quot; with the code shown above. Make sure you make the appropriate changes to the include() commands.

Oh, and &lt;b&gt;be sure to back-up your blog!&lt;/b&gt;]]></description>
		<content:encoded><![CDATA[<p>Basically, yes. You create more than one single.php template (with different names), and include them in the template called &#8220;single.php&#8221; with the code shown above. Make sure you make the appropriate changes to the include() commands.</p>
<p>Oh, and <b>be sure to back-up your blog!</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guerry</title>
		<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-581</link>
		<dc:creator><![CDATA[Guerry]]></dc:creator>
		<pubDate>Fri, 14 Dec 2007 04:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comment-581</guid>
		<description><![CDATA[HI!

(Templatemania) (I want different single.php templates for posts in different categories)

The new single.php is just with these short code?

Thanks!]]></description>
		<content:encoded><![CDATA[<p>HI!</p>
<p>(Templatemania) (I want different single.php templates for posts in different categories)</p>
<p>The new single.php is just with these short code?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-05-01 01:24:37 by W3 Total Cache
-->