WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Tutorials» How to Create a Custom Archives Page in WordPress

How to Create a Custom Archives Page in WordPress

Last updated on August 28th, 2018 by Editorial Staff
108 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Create a Custom Archives Page in WordPress

Custom archives page is a great way to bring together all your old content in one page. It allows you to have a dedicated page where you can list your monthly archives, category archives, tag archives, author archives, and anything else that you might want to add. We have a custom archives page for WPBeginner. Recently one of our users suggested that we write a tutorial on that. In this article, we will show you how to create a custom archives page in WordPress.

The Problem

By default, you have the ability to display your yearly archives by using sidebar widgets. This can get out of hands once you have been blogging for more than a year. Imagine sites like WPBeginner that have been active for nearly 4 years. We would have 48 monthly archive links in the sidebar. You also have the ability to add category archives, author listing, etc on your sidebar. But why clutter the sidebar with so many links when you can create a single page to list them all. This is when a custom archives page come in play. Not only does it allow you to avoid clutter, it also provides your users with an efficient way to browser through your older content.

Sadly, most WordPress themes do not come with a custom archives page template. Let’s look at what you need to create a custom archives page template in WordPress.

Note: Please do not confuse the custom archives with archive.php template that comes with most WordPress themes. The archive.php template is used to display monthly, category, tag, author, and other archive pages. Our custom archives page would be a single page that will bring all of your other archives together.

Creating a Custom Archives Page Template

First thing you need to do is to create a page template for the custom archives page. Simply open a new file in your text editor (i.e Notepad) and name it page-archive.php. Next, Add the following lines of code at the top:

<?php
/* 
Template Name: Archives
*/
?>

Upload the page-archive.php in your WordPress themes folder, and you have created an Archives page template. Now we need to make sure that this page template matches the design of your site. Copy the content of your page.php file located in your theme’s folder and paste it in page-archive.php.

Below is an example of how your page-archive.php file would look like:

<?php
/* 
Template Name: Archives
*/
get_header(); ?>

<div id="primary" class="site-content">
<div id="content" role="main">

<?php while ( have_posts() ) : the_post(); ?>
				
<h1 class="entry-title"><?php the_title(); ?></h1>

<div class="entry-content">

<?php the_content(); ?>

/* Custom Archives Functions Go Below this line */



/* Custom Archives Functions Go Above this line */

</div><!-- .entry-content -->

<?php endwhile; // end of the loop. ?>

</div><!-- #content -->
</div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Creating a Custom Archives Page in WordPress

Now that you have the basic page template ready, you need to create a new custom archives page in WordPress. Go to your WordPress admin panel and add a new page (Pages » New). You can call this page Archives, Library, or anything else that you like. Now look at the meta boxes below the publish button on the right hand side of your screen. You should see a meta box called Page Attributes. Click on the drop down menu below Template and choose Archive as your page template. Save and Publish the page.

Select Archives Page Template in WordPress

Now you have created a page that uses the archives page template, however it will not show any content. Let’s go ahead and add custom archive page elements such as yearly archives, categories, etc.

Adding Monthly Archives with Compact Archives

If you look at our custom archives page, then you will notice that we are not using the default monthly archives listing that comes with WordPress. Instead, we are using a plugin called Compact Archives. Note we have adopted this plugin and are now maintaining it.

Install and activate this plugin the Compact Archives plugin. After activating the plugin, add the following code in your custom archives page template (page-archive.php):

<p><strong>By Date</strong></p>
<ul>
<?php compact_archive($style='block'); ?>
</ul>

It will display your monthly archives like this:

Displaying monthly archives one year per row using Compact Archives

Adding a List of all Categories

Categories summarize the main topics of your website and are the best way to sort your content. See why how we use Categories vs Tags. Since we are using categories as the main way to organize our content, we think it is absolutely crucial to list our category archives. To save space, we are going to display it an inline list.

First add this code in your archives page template file:

<p><strong>Categories:</strong></p>
<ul class="bycategories">
<?php wp_list_categories('title_li='); ?>
</ul>
<div class="clear"></div>

Now we need to style this list, make it appear inline and improve their look. Add this to your theme’s style.css file:

ul.bycategories {
margin: 0;
padding: 0;
}
ul.bycategories li {
list-style: none; 
list-style-type: none;
margin: 0; 
padding: 0;
}
ul.bycategories li a {
list-style: none; 
list-style-type: none;
margin: 0 20px 15px 0; 
float: left; 
background: #eee; 
color: #464646; 
padding: 5px 10px;
border-radius: 5px; 
-moz-border-radius: 5px; 
-webkit-border-radius: 5px;
}
ul.bycategories li a:hover{
text-decoration: none; 
background: #ff6200; 
color: #fff;
}
.clear{clear: both;}

Your categories will look like this:

Displaying in line categories on archives page in WordPress

Explore? Redirect Users to a Random Post

In our archives page, we have an Explore WPBeginner button. This button redirects users to a random post. The purpose is to allow users to randomly stumble through articles. Learn how to redirect users to a random post in WordPress.

While this is all the information that we have on our custom archives page, you can most certainly add more. Let’s look at some of the other things that you can add.

Adding a Tag Cloud

If you want to display a tag cloud of your most popular tags used on the site, then simply add the following code in custom-archive.php file:

<p><strong>Tags Cloud:</strong></p>
<?php wp_tag_cloud(); ?>

The wp_tag_cloud() function comes with a lot of parameters to adjust the number of tags, maximum and minimum tag sizes, etc.

Adding a List of Pages

If you want to display a list of all pages on your site, then simply add the following code:

<?php wp_list_pages( 'title_li=' ); ?>

Adding a List of Authors

To display the list of authors on the site, simply add the following code:

<?php wp_list_authors( 'exclude_admin=0&optioncount=1' ); ?>

Adding Recent Posts

If you want to display a list of your most recent posts, then add this code:

<?php wp_get_archives('type=postbypost&limit=10'); ?>

A comprehensive archives page allows your users to efficiently navigate through your old content. We hope that this article helped you create a custom archives page in WordPress. If you have any questions or suggestions, then please let us know by leaving a comment below.

108 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Start Your Own Podcast (Step by Step)

    How to Start Your Own Podcast (Step by Step)

  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

79 Comments

Leave a Reply
  1. Martin says:
    Oct 10, 2019 at 2:52 pm

    Great article.

    I have maybe a silly question. Is there any SEO benefit if I have a custom archive page or even archive.php. in the theme folder?

    Or is it the same as creating a new page with url mydomain/archive and listing all my posts and pages based on the categories I want. This is what I would prefer.

    Thank you

    Reply
    • WPBeginner Support says:
      Oct 11, 2019 at 10:30 am

      Having a custom archive would not give an SEO benefit, it would be personal preference and you can use your second method if you wanted.

      Reply
  2. Aileen says:
    Jun 20, 2019 at 9:06 pm

    Hi–my site is using the Genesis framework an it has a child theme. I tried to implement the page-archive.php, but I skipped the part where I copy the page design from page.php and I’d hope it would work regardless.
    So when I tried implementing this, when I go to my Archive place, it gives an Internal error, ie. 505 and cannot find the page itself.
    How does this work with Genesis?

    Reply
    • WPBeginner Support says:
      Jun 21, 2019 at 10:13 am

      Adding a custom page template would be the same as with any other theme, it seems like there may be a problem with the code you’re using to create the archive page.

      Reply
  3. Rahul Lakra says:
    Mar 30, 2019 at 1:18 pm

    Firstly, Thank you so much. But I can’t see any sidebar in this page. In normal pages it is visible. I will be so happy if you can help me out to display sidebar here too. Thanks In advance!

    Reply
    • WPBeginner Support says:
      Apr 1, 2019 at 12:52 pm

      For the sidebar, sadly that is theme specific for what needs to be added, if you reach out to your theme’s support they should be able to let you know how they have the sidebars added to the templates.

      Reply
  4. Vijay Sundaram says:
    Jul 23, 2018 at 8:56 am

    Hi,

    This was a great tutorial. However, the CSS code for the categories does not seem to work. It is shown as a list with categories and subcategories. Where do I embed the code that you have given in the style.css file? What is meant by make it appear inline? It would be great if you could help me resolve this?
    Regards,
    Vijay Sundaram

    Reply
  5. John Paul says:
    Jun 10, 2018 at 11:56 pm

    Is it possible to filter the archive to just one category of a post?

    Reply
  6. Woolker Cherenfant says:
    Mar 2, 2018 at 1:07 pm

    Thank you for this helpful tutorial. I do follow along and have my custom archive page up. However, I still get the default WP archive under my custom settings. Could you please have a look and tell me what have I done wrong?

    Thanks for your kind reply.

    —Woolker Cherenfant

    Reply
    • Woolker Cherenfant says:
      Mar 2, 2018 at 1:20 pm

      Never mind. I got it solved. Thanks.

      —Woolker Cherenfant

      Reply
    • WPBeginner Support says:
      Mar 5, 2018 at 9:28 am

      Hi Woolker Cherenfant,

      Unfortunately, its hard for us to detect any mistakes. We will recommend you to try the tutorial again and see if this helps.

      Reply
  7. Neil says:
    Feb 10, 2018 at 8:33 pm

    I wonder if anyone can help?
    hopefully someone might be able to help with an unusual problem that I have noticed – and it appears to have been occurring since Nov 2017 or before…
    For example…
    this url has been generated/created and I don’t know how or why… it seems that with two categories if I take a ‘whole’ url and copy and paste that after the category part only url then it will resolve… (and has been indexed!)

    ie

    I think this has only happened with (archive) pages…

    To make matters worse these urls have been indexed by Google. I don’t know if a plugin has caused this or something else…

    Note the single ‘/’ in the second part of the url…

    Reply
    • WPBeginner Support says:
      Feb 12, 2018 at 4:10 pm

      Hi Neil,

      Please see WordPress troubleshooting tips to figure out what caused this issue.

      Reply
  8. Subhash says:
    Jan 6, 2018 at 6:33 am

    Dear Sir,

    How to customize the look of default archive page. I want to add 2 sidebars instead of 1 sidebar. I am talking about this page https://www.wpbeginner.com/2017/06/

    Thanks

    Reply
    • WPBeginner Support says:
      Jan 7, 2018 at 5:05 pm

      Hi Subhash,

      For that you’ll need to edit your theme’s date.php or archive.php template files and call your sidebars in the template file.

      Reply
      • Subhash says:
        Jan 8, 2018 at 3:26 am

        Hi Support Team,

        Thanks for guidance about this.

        Have a good day!

        Regards
        Subhash

        Reply
  9. Nyx says:
    Aug 11, 2017 at 5:57 pm

    Wonderful tutorial! Thanks so much.

    Quick, I hope, question: I used your instructions for adding “Adding a List of all Categories.” How can I get my list itself to show justified inside the space, instead of left aligned. Thanks for any help.

    Reply
  10. Dave Ward says:
    Apr 23, 2017 at 3:11 am

    This worked great, but I want to display an actual snippet of the archived pages instead of just a list. Is there a way to do that?

    Reply
  11. Mohammad Kharoofa says:
    Feb 1, 2017 at 10:46 am

    Thanks for this useful article, I have one problem Add code to my theme’s style.css file, Where should I paste it exactly ? because I’ve tried to paste anywhere but nothing change!

    Reply
  12. Emma says:
    Jan 25, 2017 at 7:34 pm

    Can this be done with a free WordPress account, or do you need the customising options of one of the paid plans?

    Thanks if you can let me know :)

    Reply
    • WPBeginner Support says:
      Jan 30, 2017 at 8:53 am

      Hi Emma,

      Please see our guide on the difference between self hosted WordPress.org vs free WordPress.com blog.

      Reply
  13. Andry says:
    May 30, 2016 at 8:15 pm

    Hi !

    I’m preparing a news site with WP theme but I have a GREAT question about archives, maybe you’d be able to give me your opinion thanks to your experience.
    The site must give a new version everyday (relating to the paper edition) and offer an archive page which allows to find the old editions as it was published the day ‘d’. Plugins in WP allow only to have articles by date, so we have a list of the old artilces for a specific date but not the whole edition (a complete copy of the site as it was published at a ‘d’ date). Do you know any plugin for WP to ‘make a copy’ of a site so it’d be possible to link every ‘copy-date’ with a date in the calendar table? or an archive plugin to have automaticly the old editions ? Is it possible to have a folder (in the WP repertory) which contains all the articles of an edition ? so I can link each folder to a date in my calendar table ?
    – Do you have in your favorite lists a good WP theme for newspaper ?
    Thanks in advance !

    Reply
  14. Aaliya Thahseen says:
    Mar 9, 2016 at 6:13 pm

    Upload the page-archive.php in your WordPress themes folder, and you have created an Archives page template.

    I am having difficulty with this part. How do I upload the page-archive,php in the wordpress themes folder?

    Reply
    • WPBeginner Support says:
      Mar 14, 2016 at 4:36 pm

      You can do that using an FTP Client. Your WordPress hosting provider will provide you login details.

      Once connected to your site using FTP, you need to visit /wp-content/themes/ folder. There you need to open your theme folder and upload the file from your computer. See our guide on how to use FTP to upload files to WordPress.

      Reply
      • Cely says:
        Nov 28, 2017 at 1:49 am

        Hello, I’ve been done the steps of uploading the php on the theme folder. then I went back to my wordpress, the templave “archives” is still not there. could you please help me.

        Reply
  15. dwieyoko says:
    Aug 31, 2015 at 12:20 am

    how to create search form and display search result on archive.php.. ?

    Reply
  16. Kyran Wallace says:
    Aug 14, 2015 at 9:38 am

    Hi there

    This worked great for me! Thank you.

    One thing though, My list of archives will not show on mobile devices. I am currently running the WPTouch plugin for mobile users.

    Could you advise how to resolve this please?

    Thanks

    Reply
  17. Pete says:
    May 28, 2015 at 4:47 pm

    Hi, is there a way just to list certain categories i.e. exclude some categories from the list?
    Thank you.

    Reply
    • WPBeginner Support says:
      May 30, 2015 at 11:50 am

      yes you can use wp_list_categories function like this.

      <ul>
      <?php wp_list_categories('exclude=4,7&title_li='); ?>
      </ul>
      

      Replace 4,7 with the IDs of categories you want to remove.

      Reply
  18. loic says:
    Dec 15, 2014 at 10:46 am

    Hello,

    I have registered different CPT.

    I have created a page template which list posts for a given CPT.

    I have put a query (query_posts(‘posts_per_page=-1&post_type=my_cpt_one’); before the loop.

    Than I have selected the page template when creating the page archive of the given CPT.

    How to use the same page template for each CPT?

    For example, I want three page archive named “my cpt one”, ‘my cpt two”, “my cpt three” which calls the same page template.

    Of course, i could use three page templates, but I’m looking for a way to use only one page template.

    My problem is to set in the query the post type slug.

    Is that possible?

    Cheers.

    Reply
  19. Avdhesh Arya says:
    Dec 13, 2014 at 3:30 am

    Thanks so much! This has helped a lot in creating a custom Archives page for my website.

    Reply
  20. WPBeginner Staff says:
    Dec 7, 2014 at 7:25 pm

    That’s because template tag wp_list_categories generates a bulleted list of your categories by default. Child categories are displayed indented under their parent categories. You can use
    &lt?php wp_list_categories('title_li=&style=none'); ?> to display your categories with line breaks.

    Reply
  21. Cara Zimmerman Seekell says:
    Dec 6, 2014 at 6:57 pm

    My categories look sort of all over the place, any idea why?

    Reply
  22. yasinatagun says:
    Sep 30, 2014 at 8:13 pm

    Cant we make it without plugin? I just want to list my all of posts in one page. No matter there is 10000 posts or 2 post. i just want to list ?

    Reply
  23. Luca says:
    Sep 9, 2014 at 9:46 am

    I would like to create an yearly/monthly archive of a specific category. Is it possible using with a filter for a specific category?

    Reply
  24. April says:
    Aug 21, 2014 at 6:22 pm

    I am looking high and low for my themes folder… I know a
    little more than basic for coding, but working with WordPress has been
    difficult for me trying to find everything. Maybe it is not compatible with
    what I have.

    I am trying to have a page on my blog for a list of Archived
    blog posts that looks like this: https://www.wpbeginner.com/archives/ with year,
    month, and categories. I have a lot of posts. I tried the plugin http://wordpress.org/plugins/archives/
    for Archives and created a page and added [archives] and all I got was a whole
    list of all my blog post titles. It was long.

    I found this post https://www.wpbeginner.com/wp-tutorials/how-to-create-an-archives-page-in-wordpress/
    but I cannot locate a themes folder in wordpress. Maybe I have the wrong set
    up?

    I am hosted with one of the outside WordPress recommended
    hosts using WordPress for my blog. My theme is Twenty Ten.

    If someone could help me get the result I am looking for,
    that would help me a lot. Thanks!

    Reply
    • Essekia Paul says:
      May 5, 2016 at 2:57 am

      If anyone is looking for an answer to this. The path is :

      WordPress root folder -> wp-content -> themes -> Twenty Ten

      Reply
  25. Member At Blc says:
    Jul 28, 2014 at 4:56 pm

    I have added the archive page to my site but I only want to see the date / categories and archives in the members only section Is this possible?

    Reply
  26. Member At Blc says:
    Jul 28, 2014 at 3:46 pm

    I have just added archive page to my site but want the posting pages, dates and categories hidden and only visible when you log in. My post pages currently show blocked but I see them in public view. Can these be hidden???

    Reply
  27. Avinash says:
    Apr 14, 2014 at 1:56 pm

    Works Perfectly, When I tried to add &show_count=1 then the count breaks the category listing .. can you help with the css needed for the count to display properly.

    Reply
  28. Pawan Kesari says:
    Apr 11, 2014 at 7:21 am

    Very helpful. I have just added archive page to my blog site
    Question: Would this template file get deleted during theme upgrade?

    Reply
    • WPBeginner Support says:
      Apr 13, 2014 at 1:07 pm

      Yes it will, it would be better to create the template file in a child theme.

      Reply
  29. Charlie says:
    Mar 27, 2014 at 7:14 am

    Nice howto, but is there any way to manage something like this in a plugin?

    Reply
  30. Nicole says:
    Mar 2, 2014 at 4:25 pm

    I love this tutorial! However, I want my tag cloud to be separated by commas. Here’s the code I used for the tag cloud (I don’t want the font sizes to change so I kept the smallest and largest at the same size)…

    Tags

    Any tips?

    Reply
    • WPBeginner Support says:
      Mar 4, 2014 at 5:59 pm

      Your code was stripped by WordPress comments. This snippet should work:

      <?php
       $args = array(
          'smallest'                  => 8, 
          'largest'                   => 22,
          'separator'                 => ','
      );  
      wp_tag_cloud($args); 
      ?>
      
      Reply
  31. voltima says:
    Mar 2, 2014 at 1:39 pm

    Thanks a lot for a very easy to understand ‘how-to’.

    Reply
  32. Thomas says:
    Feb 27, 2014 at 3:23 pm

    Hi, thanks for the great tutorial!

    I did set-up the list of all categories which looks perfect. The only problem I have is that if I add any content to that page, the list of all categories is always placed at the bottom. Is there a way how I can set it to the top of the page?

    Reply
  33. Archurst O. A says:
    Feb 22, 2014 at 5:10 am

    Is there a way to show per day or week instead of the monthly archive style?

    Reply
  34. sameera says:
    Jan 27, 2014 at 5:13 am

    Thanks. Grete work.

    Reply
  35. Nad' says:
    Jan 24, 2014 at 6:38 pm

    Hello guys,
    First of all, thanks for this amazing website. I have used this post to create the archive but since yesterday the archive page is no longer working. I have not changed the code and now the only thing I see is By date. after that, I cannot see anything, not even the sidebar or the footer.
    My template is running locally as I am building it. Any idea what could have caused that?

    thanks

    Reply
    • WPBeginner Support says:
      Jan 25, 2014 at 5:48 pm

      seems like a coding error in your template is breaking the template right after it displays your archives by date.

      Reply
  36. meki says:
    Jan 8, 2014 at 11:01 am

    I copied your given code but my site is not showing any kind of archives. Your code has an error. 0n line # 16 you are closing ?>php then starting html, which will simply print html on page. I activated plugin, corrected the code but still my page is empty. Let me correct, thanks.

    Reply
    • Meki says:
      Jan 8, 2014 at 11:48 am

      I do not have a page.php as well.

      Reply
      • Meki says:
        Jan 9, 2014 at 9:46 am

        any reply?

        Reply
        • WPBeginner Support says:
          Jan 9, 2014 at 1:52 pm

          Meki, we are sorry but we are unable to understand the issue you are facing. As for page.php file you may be using a Theme Framework so your theme may not show a page.php file. Please contact your theme author and ask them which file you should use as the base for your custom page templates.

  37. Craig Parker says:
    Jan 7, 2014 at 1:07 pm

    Awesome. I’ve got to bookmark it and come back, but an archves page is something I’ve been wondering about for a bit now.

    Reply
  38. Kelly says:
    Jan 5, 2014 at 10:34 pm

    Great tutorial. Could you clarify something before I begin. I’m using a child theme. Should I add the page-archive.php file within the folder of the actual “theme files” or should I place it within the child-theme-folder? Likewise….Now we need to style this list, make it appear inline and improve their look. Add this to your theme’s style.css file. I’m going to assume I can add this within my child-theme as custom css; is that the correct approach?

    Reply
    • WPBeginner Support says:
      Jan 6, 2014 at 2:46 pm

      Yes this is the correct approach.

      Reply
  39. gary bvings says:
    Dec 20, 2013 at 11:23 am

    I’d like to combine the two archive display ideas above. I have two categories: Cars and Boats. I’d like to show the monthly archives ( with the Compact Archive plug-in) for each. What php do I use? Thanks.

    Reply
  40. Maschil says:
    Dec 8, 2013 at 10:16 am

    Great tutorial — thanks :) It has worked perfect!

    I copy and pasted the css provided into my css file and it did not change the look at all. Thoughts?

    Reply
    • WPBeginner Support says:
      Dec 8, 2013 at 2:02 pm

      It depends on where you copy pasted your CSS.

      Reply
  41. Kate Reid says:
    Dec 4, 2013 at 4:12 pm

    Thanks so much for this really useful post. I’ve just started using a really minimal theme, so this custom archive page is perfect to help navigation. It’s looking good!

    Reply
  42. nicole holgate says:
    Nov 25, 2013 at 3:19 am

    Hi,

    Great plugin and easy to use.

    I am trying to use it for a custom posts archive page (only the custom posts to be listed in years, by month.

    Does this work with custom post types at all? Currently it is only listing regular post types.

    With thanks :)

    Nicole

    Reply
  43. Emily says:
    Nov 5, 2013 at 10:07 pm

    Ok I think I’ve figured out where to upload it, but now it’s not supporting my notepad file.

    Reply
    • WPBeginner Support says:
      Nov 6, 2013 at 7:48 pm

      Make sure that your file name is page-archive.php and not page-archive.php.txt or page-archive.txt

      Reply
  44. Emily says:
    Nov 5, 2013 at 9:53 pm

    I do not understand where to upload my page-archive.php file. Where is the WordPress Theme folder?

    Reply
  45. Sheeba Yousuf says:
    Oct 31, 2013 at 9:58 am

    I have created Archives.php and when on the page i click on the archives i don’t get which template is the posts using (custom posts) ,its a mess actually. Could you please help.

    Reply
  46. Chris Raymond says:
    Oct 10, 2013 at 6:16 pm

    i see you are using the_content in the loop, but when you click on a month and see the posts, it is only showing a snippet. Is that controlled via another custom function? Could I instead use the_excerpt?

    TIA, very useful post

    Reply
    • WPBeginner Support says:
      Oct 11, 2013 at 3:36 pm

      the_excerpt will show a short snippet of the posts. the_content is used to display full posts. See this guide Full Post vs Summary (Excerpt) in WordPress Archive pages.

      Reply
  47. real name says:
    Sep 26, 2013 at 8:51 am

    good work man …kepp it up

    Reply
  48. Atanas says:
    Sep 19, 2013 at 11:38 am

    Well… This post is quite useful but I got problem… I have Thesis 1.8 theme and I am not able to find page.php file in my theme folder …. Sad… Any ideas…

    Reply
    • WPBeginner Support says:
      Sep 19, 2013 at 10:05 pm

      Thesis is a theme framework you need to check Thesis Documentation to learn how to make these changes.

      Reply
  49. Saranya says:
    Aug 30, 2013 at 8:49 am

    Great tutorial. It helped me a lot as a beginner. Thank you so much.

    Reply
  50. Syed Irfan says:
    Jul 22, 2013 at 4:38 am

    Syed, you are doing a great job for the beginners, and I think its a great service specially for the very non skilled just like me. Masha Allah and JazakAllah!

    Reply
« 1 2

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
MonsterInsights
MonsterInsights
Google Analytics made easy for WordPress. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2021 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2021)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2021)
    • SiteGround Reviews from 4464 Users & Our Experts (2021)
    • Bluehost Review from Real Users + Performance Stats (2021)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2021 – Step by Step Guide
Deals & Coupons (view all)
SendinBlue Coupon Code
Sendinblue Coupon
Get Sendinblue, a powerful marketing automation toolkit for small businesses, for FREE.
InMotion Hosting
InMotion Hosting Coupon
Get an exclusive 50% off InMotion hosting plus a free domain.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
  • Growth Fund
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon
  • AIOSEO

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress Security by Sucuri.