<?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; archives.php</title>
	<atom:link href="http://wpfunc.com/tag/archives-php/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Thu, 01 Dec 2011 01:17:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</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://wpfunc.com/wordpress/make-an-archives-page-template.html</link>
		<comments>http://wpfunc.com/wordpress/make-an-archives-page-template.html#comments</comments>
		<pubDate>Fri, 02 Oct 2009 17:48:47 +0000</pubDate>
		<dc:creator></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;
After that add these lines for page template; with [...]]]></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; title: ; notranslate">&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; title: ; notranslate">&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; title: ; notranslate">&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>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/make-an-archives-page-template.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

