Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPressでカスタムアーカイブページを作成する方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

WordPressでカスタマイザーページを作成したいですか?

WordPressには、サイドバーなどのウィジェット対応エリアに追加できるアーカイブウィジェットが用意されています。しかし、多くの成功しているサイトは、訪問者が探しているものを見つけるのを助けるために、独立したアーカイブページを使っています。

この投稿では、WordPressでカスタム・アーカイブ・ページを作成する方法を紹介する。

How to create a custom archives page in WordPress

WordPressでカスタムアーカイブページを作成する理由

アーカイブページは、過去の投稿を時系列で表示することで、訪問者が投稿日に基づいてコンテンツを探索しやすくすることを目的としています。

ブロガーなら、アーカイブページを持つことは必須だ。ユーザーがブログ全体をスクロールすることなく過去の投稿にアクセスできる便利な方法を提供します。

現在のテーマにアーカイブページテンプレートがない場合、カスタマイザーでアーカイブページを作成することができます。たとえそうだとしても、あなたのニーズに合わせてカスタマイズしたいかもしれません。

WPBeginnerでは、ユーザーをWPBeginnerガイドコレクションに導くボタンを備えたカスタムアーカイブページを使用しています。こうすることで、新規読者はそれをクリックするだけで、私たちの究極のガイドリソースを見ることができます。

また、読者が特定の期間にどのような記事が公開されたかを簡単に確認できるように、ブログの投稿をすべて年や月ごとに整理しています。

The WPBeginner custom archive

ここでは、カスタムアーカイブページにサイトのカテゴリーとタグも追加しています。

こうすることで、訪問者は興味のありそうな過去の投稿を簡単に見つけることができる。自分のブログでもこのようにすれば、ページビューを増やし、直帰率を下げるチャンスが増えるだろう。

The WPBeginner custom archive

このことを念頭に置いて、WordPressでカスタムアーカイブページを作成する方法を見てみましょう。

以下のクイックリンクから、使いたい方法に直接ジャンプできます。

方法1:ブロックエディターを使ってカスタマイザーテンプレートを作成する。

ブロックテーマを使用している場合は、フルサイトエディターでカスタムアーカイブページテンプレートを簡単にデザインできます。

この方法はすべてのテーマで機能するわけではないので、ブロックベースのWordPressテーマを使用していない場合は、代わりにページビルダーを使用することをお勧めします。

まず、新規ページを作成するか、アーカイブとして使用したい既存のページを開きます。右側のメニューで「ページ」タブをクリックし、「テンプレート」の隣にあるリンクを選択してください。正確なリンクテキストは、現在使用しているテンプレートによって異なる場合があります。

How to create a new custom archives template

現在のテンプレートがポップアップで表示されます。

新規テンプレート」アイコンをクリックしてください。

Creating a custom archives template

ポップアップで、カスタムページテンプレートの名前を入力します。テンプレート名は参考用ですので、お好きなものをお使いください。

次に、’Create’をクリックしてテンプレートエディターを起動する。

Naming a WordPress custom archive template

テンプレートエディターは、WordPressの標準ブロックエディターと同様に機能します。

カスタムアーカイブページにブロックを追加するには、青い「+」ボタンをクリックするだけです。あとはドラッグ&ドロップでブロックをレイアウトに追加できます。

Adding blocks to the full site editor

カスタムアーカイブページを作成するので、通常アーカイブブロックを追加することから始めます。このWordPressブロックは、訪問者が年、月、週、日に基づいて投稿を探索することができます。

例えば、次の画像は投稿が月ごとのアーカイブに整理されているアーカイブブロックを示しています。

How to add an archives block to a custom template

これらのリンクをクリックすると、その期間に公開されたすべての投稿を表示する新しいページに移動します。

アーカイブブロックを追加するには、左側のメニューからブロックを探し、レイアウト上にドラッグするだけです。ブロックを追加したら、右側のメニューでブロックの設定を見てください。

Configuring the archives WordPress block

手始めに、「Group by」ドロップダウンを開き、リストから設定を選択することで、投稿の整理方法を変更することができます。

例えば、投稿数が少ない場合は、日別に表示するのが合理的でしょう。

しかし、コンテンツがたくさんある場合は、長いリストで訪問者を圧倒しないように、「月」や「年」を選択するのが一般的です。

Grouping archived posts by date

WordPressは初期設定でアーカイブ投稿を箇条書きリストで表示しますが、ドロップダウンメニューとして表示することもできます。

これは、スペースが非常に小さく、コンパクトなアーカイブを作成する必要がある場合に便利です。ドロップダウン形式に切り替えるには、「ドロップダウンとして表示」スライダーをクリックして有効化するだけです。

Displaying posts as a dropdown menu

アーカイブブロックでは、各見出しの次の投稿数の合計を表示することもできます。

これは、訪問者がアーカイブのどの部分を最初に見たいかを決めるのに役立つ。

Creating a custom archive page in WordPress

また、カテゴリーアーカイブを追加することで、訪問者が投稿日だけでなく投稿コンテンツに基づいて投稿を探せるようにすることもできます。こうすることで、訪問者が興味深いコンテンツを見つけやすくなり、サイトに長く滞在してもらい、WordPressのSEOを向上させることができます。

このブロックを追加するには、青い「+」ボタンをクリックし、「カテゴリーリスト」とタイプするだけです。適切なブロックが表示されたら、ドラッグ&ドロップでレイアウトに追加します。

Adding a Categories List to a custom archives page

もう一度、ブロックの設定に変更を加えたいかもしれない。

アーカイブブロックと同様に、投稿数をリストに追加したり、カテゴリーを箇条書きリストではなくドロップダウンメニューとして表示することができます。

初期設定では、このブロックはすべてのカテゴリーとサブカテゴリーをまったく同じように表示する。

A list of categories and subcategories on a custom archives page

子カテゴリーを親の下にインデントして表示する方がいいかもしれない。

この変更を行うには、クリックして「階層を表示」トグルを有効化するだけです。

Showing indented subcategories on a custom WordPress archive

もう一つのオプションは、’Show only top level categories’トグルを有効化して、子カテゴリーを完全に非表示にすることである。

また、タグクラウドを追加することで、訪問者が興味深い関連コンテンツを見つけやすくなります。これを行うには、左側のメニューで「タグクラウド」を見つけ、レイアウトにドラッグするだけです。

Adding a tag cloud to the archive page

これでブロックを選択し、右側のメニューにある設定を使って設定することができます。

タグクラウドには2つのスタイルがあります:初期設定とアウトラインです。小さな丸いアイコンをクリックし、「スタイル」の下にあるオプションのいずれかを選択することで、これらを切り替えることができます。

Adding a tag cloud to a custom archives page

また、各タグの次の投稿の総数を表示したり、クラウドに含まれるタグの数を変更することもできます。

小さな歯車のアイコンをクリックし、このセクションで変更を加えます。

Changing the tag cloud settings

この名前にもかかわらず、タグクラウドにカテゴリーを表示することもできます。例えば、カテゴリーブロックよりもタグクラウドブロックの方がスタイリングが好みかもしれません。

代わりにサイトのカテゴリーを表示するには、「タクソノミー」ドロップダウンを開き、「カテゴリー」を選択するだけです。

Showing categories in a tag cloud

アーカイブは、訪問者がすべてのコンテンツに簡単にアクセスできるように設計されています。

しかし、「最新の投稿」ブロックを追加することで、サイトの最新の投稿を強調することもできます。

Showing a list of latest posts

初期設定では、このブロックは各投稿のタイトルを表示するだけですが、投稿者、公開日、アイキャッチ画像を追加することができます。

右側のメニューにあるトグルを使って変更する。

Showing your most recent posts on the archive page

また、投稿の抜粋を表示することで、訪問者が各投稿の内容を理解しやすくなります。

抜粋を追加するには、「投稿コンテンツ」トグルをクリックして有効化する。

How to show post content and excerpts on the custom archive page

その後、「抜粋」ボタンをクリックして選択する。

初期設定では、WordPressは抜粋に最大55語を表示します。より多くの単語を表示したり、より少ない単語を表示したりするには、単に「抜粋の最大単語数」の設定を使用します。

そうしたら、「ソートとフィルター」セクションまでスクロールする。

ここでは、ブロックが投稿を新しいものから古いものへと整理していることがわかります。Order’ ドロップダウンを開き、’A-Z’ などの別の設定を選ぶことで変更できます。

Organizing the latest posts on your WordPress archive page

このセクションでは、特定の投稿者やカテゴリーからの投稿を表示することもできます。

最後に、WordPressがブロックに表示する投稿数を変更するには、「項目数」セクションに新しい数字を入力するか、スライダーをドラッグします。

Changing the order of your latest posts

さらにブロックを追加し、右側のメニューで設定することで、アーカイブページの作業を続けることができます。

例えば、画像ブロックを追加してカスタムロゴを表示したり、検索バーを追加して訪問者が特定の投稿を探せるようにすることもできます。

テンプレートの見た目に満足したら、「公開する」ボタンをクリックし、「保存する」ボタンをクリックします。

先ほど作成したページは新しいアーカイブテンプレートを使用しています。ページを更新または公開し、WordPress サイトにアクセスしてカスタマイザーアーカイブページを見ることができます。

WordPressフルサイトエディターの使い方については、以下のガイドをご覧ください:

ブロックベースのエディターを使えば、シンプルなカスタムアーカイブページを作成できます。しかし、すべてのテーマで動作するわけではなく、WordPressビルトインブロックとツールに制限されます。

どのWordPressテーマでも動作する完全カスタマイザーのアーカイブページを作成したい場合は、代わりにページビルダーの使用をお勧めします。

SeedProdはWordPressのための最高のドラッグアンドドロップページビルダーです。サイトの投稿をすべて表示するブロックを含む、180以上のテンプレートと既製のブロックが付属しています。

まず、SeedProdをインストールして有効化する必要があります。詳しくは、WordPressプラグインのインストール方法のステップバイステップガイドをご覧ください。

注: SeedProdには無料版もあり、予算が限られていて始めたばかりの方でもカスタマイザーページを作成することができます。しかし、このガイドでは、より多くのテンプレートとブロックがあるSeedProd Proを使用します。

プラグインを有効化した後、SeedProdはライセンスキーを要求します。

Adding the SeedProd license key

この情報は、SeedProdサイトの自分のアカウントの下にあります。キーを入力した後、「Verify Key」ボタンをクリックしてください。

それができたら、SeedProd ” ランディングページに行き、’新規ランディングページを追加’ボタンをクリックしてください。

Creating a new SeedProd page

カスタムアーカイブページのテンプレートを選択できるようになりました。

SeedProdのテンプレートは、リードスクイーズ、メンテナンスモード近日公開などのキャンペーンタイプ別に整理されています。画面上部のタブをクリックすると、キャンペーンタイプに基づいてデザインをフィルターすることができます。

SeedProd's professionally-designed templates

デザインをプレビューするには、そのテンプレートにマウスオーバーするだけです。

そして、外観の虫眼鏡アイコンをクリックする。

Previewing a SeedProd template

気に入ったデザインが見つかったら、「このテンプレートを選択」をクリックします。ここでは、まっさらな状態から始められるように「Blank Template」を使用していますが、お好きなテンプレートを使用することができます。

次に、カスタムページの名前を入力します。SeedProdはページのタイトルに基づいて自動的にURLを作成しますが、必要であればこのURLを変更することができます。

例えば、検索エンジンがこのページの内容を理解するのに役立つ、関連キーワードを追加するとよいでしょう。

詳しくは、WordPressブログのキーワード調査方法をご覧ください。

入力した情報に問題がなければ、「保存してページの編集を開始する」ボタンをクリックします。

How to create a custom archive using SeedProd

これはSeedProdページビルダーのインターフェースを読み込みます。これはシンプルなドラッグアンドドロップビルダーで、右側にページのライブプレビューが表示されます。

左側にはブロックの設定も表示されます。

How to create a custom archive using SeedProd

まず始めに、コンテンツをカラムにまとめるレイアウトを選ぶ必要がある。

レイアウトの選択」では、使用したいレイアウトをクリックするだけです。どのレイアウトを選択しても構いませんが、私たちはすべてフルスクリーンレイアウトを使用しています。

Choosing a layout for your custom archive page

レイアウトを選んだら、アーカイブページにブロックを追加していきます。

左側のメニューには、デザインにドラッグできるさまざまなブロックがすべて表示されています。今回はカスタムアーカイブページを作成するので、投稿ブロックを追加します。

左側のメニューで、検索バーに「投稿」と入力する。右のブロックが表示されたら、レイアウトにドラッグ&ドロップします。

Adding a 'Posts' block to a custom page using SeedProd

このブロックはすべての投稿のタイトルを表示します。

また、「Continue Reading」リンクがあり、訪問者がクリックすると各投稿の全文を読むことができる。

How to add posts to a custom archive page in WordPress

初期設定では、このブロックはすべての投稿を表示しますが、特定のカテゴリーやタグを持つ投稿、または特定の投稿者が公開した投稿のみを表示するように変更することができます。

この変更を行うには、レイアウトの「投稿」ブロックをクリックして選択し、左側のメニューの設定を使用するだけです。

例えば、以下の画像では「マーケティング」カテゴリーからの投稿のみを表示しています。

Filtering your archive posts based on category

また、投稿のカテゴリーを変更することもできます。例えば、投稿が公開された日やコメント数に基づいて投稿を表示することができます。

投稿の順序を変更するには、’Order By’ボックスまでスクロールし、新しい設定を選択するだけです。初期設定では、SeedProdは「ASC」(昇順)で投稿を表示します。

投稿を降順に並べるには、「Order」ドロップダウンを開き、「DESC」を選択します。

Showing posts in descending order

その後、「レイアウト」セクションまでスクロールし、投稿リストの表示方法を変更することができる。

例えば、「カラム」フィールドに新しい数字を入力することで、投稿を複数のカラムに分割することができます。

Creating a multiple column archive page

また、リストに含まれる投稿の数を変更したり、投稿の抜粋を追加または非表示にしたり、「Continue Reading」のテキストを変更したりすることもできます。

投稿リストの見栄えに満足したら、アーカイブページにさらにブロックを追加し、左メニューの設定を使ってそれらのブロックをカスタマイズすることができます。

例えば、「ソーシャル・プロフィール」ブロックを追加することで、ソーシャル・メディアであなたをフォローするよう促したいかもしれない。

Adding social profiles to a custom page

ページの設定に満足したら、「保存」の隣にあるドロップダウンの矢印をクリックして、「公開する」を選択します。

カスタムページがWordPressブログのフロントエンドで公開されます。

Publishing your SeedProd custom archive page

訪問者がアーカイブページを見つけやすいように、ナビゲーションメニューやサイトのフッターに追加するとよいでしょう。

ボーナスのヒントWordPressでカスタム投稿タイプのアーカイブページを作成する

WordPressサイトでカスタム投稿タイプを使っていますか?もしそうなら、カスタム投稿タイプ専用のアーカイブページを作成することを検討するとよいでしょう。

カスタム投稿タイプを使用する場合、WordPressはそれらを表示するために初期設定のアーカイブテンプレートを使用します。とはいえ、カスタマイ投稿タイプをアピールしたりユーザーフレンドリーな方法とは言えないかもしれません。

このトピックの詳細については、WordPressでカスタム投稿タイプのアーカイブページを作成する方法の投稿をご覧ください。

この投稿がWordPressでカスタムアーカイブページを作成するのにお役に立てば幸いです。WordPressで表示されるアーカイブの月数を制限する方法や、サイトを成長させるために必須のWordPressプラグインについての投稿もお読みください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

80件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Martin says

    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

    • WPBeginner Support says

      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.

      管理者

  3. Aileen says

    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?

    • WPBeginner Support says

      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.

      管理者

  4. Rahul Lakra says

    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!

    • WPBeginner Support says

      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.

      管理者

  5. Vijay Sundaram says

    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

  6. Woolker Cherenfant says

    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

  7. Neil says

    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…

  8. Nyx says

    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.

  9. Dave Ward says

    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?

  10. Mohammad Kharoofa says

    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!

  11. Emma says

    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 :)

  12. Andry says

    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 !

  13. Aaliya Thahseen says

    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?

  14. Kyran Wallace says

    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

  15. Pete says

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

  16. loic says

    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.

  17. WPBeginner Staff says

    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.

  18. yasinatagun says

    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 ?

  19. Luca says

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

  20. April says

    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!

    • Essekia Paul says

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

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

  21. Member At Blc says

    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???

  22. Avinash says

    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.

  23. Pawan Kesari says

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

  24. Nicole says

    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?

  25. Thomas says

    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?

  26. Nad' says

    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

  27. meki says

    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.

  28. Craig Parker says

    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.

  29. Kelly says

    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?

  30. gary bvings says

    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.

  31. Maschil says

    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?

  32. Kate Reid says

    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!

  33. nicole holgate says

    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

  34. Sheeba Yousuf says

    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.

  35. Chris Raymond says

    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

  36. Atanas says

    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…

  37. Syed Irfan says

    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!

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。