<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webmaster-Source &#187; Webzines</title>
	<atom:link href="https://www.webmaster-source.com/tag/webzines/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Thu, 24 Aug 2017 02:01:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>WordPress as an Online Magazine</title>
		<link>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/</link>
		<comments>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 16:56:48 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Webzines]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/</guid>
		<description><![CDATA[WordPress is more than a blog engine. It&#8217;s an easy-to-use CMS (Content Management System) perfect for running a &#8220;webzine.&#8221; I&#8217;m not a big fan of most CMS systems, though I&#8217;m a huge fan of WordPress. Joomla is too convoluted and Drupal isn&#8217;t that great either. I&#8217;m not going to go around the web bashing other [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>WordPress is more than a blog engine. It&#8217;s an easy-to-use CMS (Content Management System) perfect for running a &#8220;webzine.&#8221; I&#8217;m not a big fan of most CMS systems, though I&#8217;m a huge fan of WordPress. Joomla is too convoluted and Drupal isn&#8217;t that great either. I&#8217;m not going to go around the web bashing other CMSes right and left, but I do like to point out WordPress as a viable option for &#8220;non-blog&#8221; sites.</p>
<h3>The Main Page</h3>
<p><strong>The main difference between a blog an a webzine is the index page.</strong> While the typical blog just shows the most recent posts, a webzine goes beyond that. There are a lot of ways to display content on the main page. Here are some examples of webzines:</p>
<ul>
<li><a href="http://problogger.net">ProBlogger</a></li>
<li><a href="http://www.revolutiontheme.com/">Revolution WordPress Theme</a></li>
<li><a href="http://leakynews.com">The Leaky Cauldron</a></li>
<li><a href="http://themasterplan.in/themes/the-morning-after/">The Morning After WordPress Theme</a></li>
<li><a href="http://www.cnet.com/">CNet</a></li>
<li><a href="http://www.cnn.com/">CNN</a></li>
<li><a href="http://yahoo.com">Yahoo</a></li>
</ul>
<p>Look around the internet. You&#8217;ll find no shortage of different &#8220;non-blog&#8221; index styles. Do you see how they are all similar? <strong>They highlight different <em>types</em> of content.</strong> &#8220;Featured&#8221; posts, &#8220;normal&#8221; posts, &#8220;news,&#8221; etc. Before you get into developing your webzine too much, <strong>map out the main page on paper</strong>. Decide what types of content you will have, and how you will display them on the main page.<span id="more-289"></span></p>
<p>How do you put more than one block of posts on a page? It&#8217;s not that hard&#8230;if you&#8217;re used to editing templates (which I assume you are, if you&#8217;re making your own theme). When you create the index.php template, you put in more than one <a href="http://codex.wordpress.org/The_Loop_in_Action">Loop</a>.</p>
<p>Suppose you wanted to put a box on the index with a list of links to featured posts. I do this on the <a href="http://www.webmaster-source.com">Webmaster-Source</a> homepage (in the middle column) if you want to take a look. You would create a category called &#8220;Featured Posts&#8221; (noting the category&#8217;s id) and use this code somewhere on the homepage:</p>
<p><code>&lt;ul&gt;<br />
&lt;?php<br />
$postslist = get_posts('category=<strong>2</strong>&amp;order=DESC&amp;numberposts=5');<br />
foreach ($postslist as $post) :<br />
setup_postdata($post);<br />
?&gt;&lt;li&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;&lt;?php<br />
endforeach;<br />
?&gt;<br />
&lt;/ul&gt;</code></p>
<p>For this to work, you need to replace <strong>2</strong> with the category id for your Featured Posts category.</p>
<p>By creating categories like &#8220;Features,&#8221; and &#8220;News,&#8221; and using multiple Loops to pull their most recent entries to the main page, you can divide-up your articles like a magazine. No matter how you want the index to look, you can do it with WordPress and some ingenuity.</p>
<h3>Template Mania</h3>
<p>Now that you have all these different types of content, you&#8217;ll need more ways to display them. What if you don&#8217;t want the category archives for the &#8220;News&#8221; category to look the same as the normal archives? What if you want it to look more customized&#8230;sort of like the index page? Here&#8217;s a little secret: You can have more than one category.php template. That&#8217;s right. If you copy the category.php template and rename it category-<em>3</em>.php WordPress will use category-<em>3</em>.php instead of category.php when the category archive for the category with the id of <em>3</em> is being displayed. That leaves you with plenty of room for customization.</p>
<p>Want to take that even further? How about having different single.php templates for posts in different categories? Just rename your normal single.php template to normal-single.php and create as many alternate single templates as you need. Next, create a new single.php and do something like this:</p>
<p><code>&lt;?php<br />
$post = $wp_query-&gt;post;<br />
if (in_category('3')) {<br />
include(TEMPLATEPATH . '/featuredpost-single.php');<br />
} else {<br />
include(TEMPLATEPATH . '/normal-single.php');<br />
?&gt;</code></p>
<p>Using if statements, you can tell WordPress to use different templates depending on the category. If you only need to make a minor tweak for a certain category, you don&#8217;t need to go so far as to have a separate template. You can just put</p>
<p><code>&lt;?php if (!in_category('3')) { ?&gt;<br />
Whatever you want to appear on permalink pages that are not in category 3.<br />
&lt;?php } ?&gt;</code></p>
<p>I use in_category() on my single post template. That way I can cut-out some of the extras if a post is in my Sideblog category.</p>
<h3>Custom Fields</h3>
<p><a href="http://codex.wordpress.org/Using_Custom_Fields">Custom Fields</a> are an interesting, and underused, part of WordPress. They&#8217;re a way to add metadata to your posts. There are scores of things you can use them for in a webzine environment. Take a peak at <a href="http://northxeast.com">NorthXEast.com</a>. See the images next to the posts? They&#8217;re not exactly <em>in</em> the actual posts. They&#8217;re (I assume) done using Custom Fields.</p>
<p>To match an image up with a post, you use a &#8220;key&#8221; of &#8220;postimage&#8221; (or something like that) and for the value you put the URL of the image. Then you can put the image near the post like this:</p>
<p><code>&lt;img src="&lt;?php get_post_meta($post-&gt;ID, 'postimage', true); ?&gt;" /&gt;</code></p>
<p>Simple.</p>
<p>You can do much more with Custom Fields than display images, but this is a common use.</p>
<h3>Further Reading</h3>
<ul>
<li><a href="http://bloghelper.is-there.net/using-wordpress-as-cms/">Using WordPress as a CMS</a></li>
<li><a href="http://www.webdesignerwall.com/tutorials/wordpress-theme-hacks/">WordPress Theme Hacks</a></li>
<li><a href="http://codex.wordpress.org/Main_Page">WordPress Codex</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2007/11/13/wordpress-as-an-online-magazine/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</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-06-09 02:58:38 by W3 Total Cache
-->