Wordpress Archive Template
Or more likely youd probably not even think ofthe archive template at all thats how unpopular it is.
Wordpress archive template. Now lets create an archive page. The archivephp template is used to display monthly category tag. Go to your wordpress dashboard and pages add newname your archive page anything and in right side you can find option to select page template. As great as wordpress is the standard way in which it approaches the archive is far from user friendlynnlets fix that today.
Sadly most wordpress themes do not come with a custom archives page template. The template file should have the same entries as the. If i were to ask you what the leastused default page type in wordpress is chances are youd say the archive template. Category archives can be displayed using the categoryphp template and tag archives can be displayed.
Note that the filter function the plugin defines must return the a full path to a template file or the resulting page will be blank. On the page below portfolio is the name of a category created on the wordpress dashboard. Even though the choice of the template or theme will ultimately depend on the preference and taste of the creator of the website there are a few things that have to be kept in mind while selecting the wordpress archive templates. Please do not confuse the custom archives with archivephp template that comes with most wordpress themes.
Wordpress looks for a template in a pre defined hierarchical order when displaying any page. Where pluginfunctionname is the function wordpress should call when the content is being retrieved. There are several templates and themes available to people who are interested in creating their own archive website. Plugin apifilter referencearchive template.
You can use specific templates for the categories youve created on your blog and create unique sections for your site. Instead of using a. Creating an archive page. Wordpress allows you to display older blog posts in a number of ways.
Lets look at what you need to create a custom archives page template in wordpress. Ill assume at this point that youve already got some posts created. Or maybe youre just wondering how to use the archivephp template file thats included with the wordpress default theme wordpress 29 and before the twenty ten theme does not include an archive template. The only template with more importance is indexphp.
To display a category page it looks for templates in this. In wordpress the archivephp template is an important template that is placed highly in the wordpress template hierarchy. Creating the archive index template and page. Create a custom post type archive template.
You dont have to limit yourself to creating a static page template for your wordpress site. Wordpress has a powerful templating system. You can create template files to customize this archive gateway for each theme you use.