<?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>WpFunc &#187; archive template</title>
	<atom:link href="http://www.wpfunc.com/tag/archive-template/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Fri, 09 Jul 2010 09:05:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Make an Archives Page Template</title>
		<link>http://www.wpfunc.com/wordpress/make-an-archives-page-template.html</link>
		<comments>http://www.wpfunc.com/wordpress/make-an-archives-page-template.html#comments</comments>
		<pubDate>Fri, 02 Oct 2009 17:48:47 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[archive template]]></category>
		<category><![CDATA[archives]]></category>
		<category><![CDATA[archives.php]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[post]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/wordpress/make-an-archives-page-template.html</guid>
		<description><![CDATA[As default themes have an archives.php. But if you want to make changes on your arcihves.php or if you&#8217;re an theme developer you can use this template quickly. You can get more information on Codex Page. Lets Begin&#8230;
Here is the code;
First Create an information and name area;
&#60;?php
/*
Template Name: Archive page
*/
?&#62;
After that add these lines for [...]<hr /><div style="text-align:center;">
<a href="http://aweber.com/?339698" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing/468x60_an.gif" alt="Email Marketing $19/Month!" style="border:none;" /></a>
</div><hr />


Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/show-the-future.html' rel='bookmark' title='Permanent Link: Show The &#8216;Future&#8217; :)'>Show The &#8216;Future&#8217; :)</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-change-your-post-page-title-with-a-custom-field.html' rel='bookmark' title='Permanent Link: How to change your Post/Page title with a custom field?'>How to change your Post/Page title with a custom field?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/create-a-shortcode-for-displaying-the-loop.html' rel='bookmark' title='Permanent Link: Create a shortcode for displaying the Loop'>Create a shortcode for displaying the Loop</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">As default themes have an archives.php. But if you want to make changes on your arcihves.php or if you&#8217;re an theme developer you can use this template quickly. You can get more information on <a href="http://codex.wordpress.org/Pages#Page_Templates" target="_blank">Codex Page</a>. Lets Begin&#8230;<span id="more-239"></span></p>
<h3>Here is the code;</h3>
<p style="text-align: justify;">First Create an information and name area;</p>
<pre class="brush: plain;">&lt;?php
/*
Template Name: Archive page
*/
?&gt;</pre>
<p style="text-align: justify;">After that add these lines for page template; with this code you list all your articles.</p>
<pre class="brush: plain;">&lt;?php
$posts_to_show = 100; //Max number of articles to display
$debut = 0; //The first article to be displayed
?&gt;
&lt;?php while(have_posts()) : the_post(); ?&gt;
&lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;?php
$myposts = get_posts('numberposts=$posts_to_show&amp;offset=$debut');
foreach($myposts as $post) :
?&gt;
&lt;li&gt;&lt;?php the_time('d/m/y') ?&gt;: &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php endforeach; ?&gt;
&lt;/ul&gt;
&lt;?php endwhile; ?&gt;</pre>
<p style="text-align: justify;">And add these lines for category and the others&#8230;</p>
<pre class="brush: plain;">&lt;?php while(have_posts()) : the_post(); ?&gt;
&lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
&lt;h2&gt;Categories&lt;/h2&gt;
&lt;ul&gt;&lt;?php wp_list_cats('sort_column=name&amp;optioncount=1') ?&gt;&lt;/ul&gt;
&lt;h2&gt;Monthly Archives&lt;/h2&gt;
&lt;ul&gt;&lt;?php wp_get_archives('type=monthly&amp;show_post_count=1') ?&gt;&lt;/ul&gt;
&lt;?php endwhile; ?&gt;</pre>
<p style="text-align: justify;">Now, save the <strong>articles.php</strong> and upload to your template&#8217;s area. Go to Pages &gt; New Page and select the Page Template with Archives.php.</p>
<p style="text-align: justify;">That&#8217;s All&#8230;</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmake-an-archives-page-template.html&amp;title=Make%20an%20Archives%20Page%20Template&amp;notes=As%20default%20themes%20have%20an%20archives.php.%20But%20if%20you%20want%20to%20make%20changes%20on%20your%20arcihves.php%20or%20if%20you%27re%20an%20theme%20developer%20you%20can%20use%20this%20template%20quickly.%20You%20can%20get%20more%20information%20on%20Codex%20Page.%20Lets%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AFirst%20Crea'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmake-an-archives-page-template.html&amp;title=Make%20an%20Archives%20Page%20Template&amp;bodytext=As%20default%20themes%20have%20an%20archives.php.%20But%20if%20you%20want%20to%20make%20changes%20on%20your%20arcihves.php%20or%20if%20you%27re%20an%20theme%20developer%20you%20can%20use%20this%20template%20quickly.%20You%20can%20get%20more%20information%20on%20Codex%20Page.%20Lets%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AFirst%20Crea'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmake-an-archives-page-template.html&amp;t=Make%20an%20Archives%20Page%20Template'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=Make%20an%20Archives%20Page%20Template&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmake-an-archives-page-template.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmake-an-archives-page-template.html&amp;title=Make%20an%20Archives%20Page%20Template'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmake-an-archives-page-template.html&amp;title=Make%20an%20Archives%20Page%20Template'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmake-an-archives-page-template.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmake-an-archives-page-template.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmake-an-archives-page-template.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/show-the-future.html' rel='bookmark' title='Permanent Link: Show The &#8216;Future&#8217; :)'>Show The &#8216;Future&#8217; :)</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-change-your-post-page-title-with-a-custom-field.html' rel='bookmark' title='Permanent Link: How to change your Post/Page title with a custom field?'>How to change your Post/Page title with a custom field?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/create-a-shortcode-for-displaying-the-loop.html' rel='bookmark' title='Permanent Link: Create a shortcode for displaying the Loop'>Create a shortcode for displaying the Loop</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/make-an-archives-page-template.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
