Site logo

Archived topic

Want to have an Archive Page...

18 replies · Started by iamarghya on January 28, 2022

Viewing posts 1–15 of 19

I want to have an archive page like the "pcgamer" or "wpbeginner" website has with a time-date filter... but I selected a static home page and a static page for showing my post named "Blog"... I am new so I am actually confused where is my archive page because I can't access it with the suffix "/archive" URL. or if my "blog" page is my archive and then I want to have "/archive" in my URL not "/blog".

Hi there,

1. create 2 x Pages, one for your Home Page, and one for your Blog page.
2. Dashboard > Settings > Reading, select Static Page for your Home page. Then assign your two pages to your home and your blog,

Whatever the Title you choose for your Blog Page in step 1 will be the /slug it uses in the URL. So if that Page is titled: Archive it will be /archive

But the blog page is showing both in my post and page sitemap...so if I don't choose the static page that means my archive page is also my homepage?

And I mentioned the website like "pcgamer" or "wpbeginner", they have an archive page with month year filter how to customize like that...Do u want to need to see my website to help me with that?

By default WP will display your Latest Posts on the Front Page ( home ) of your site.
To change that you must create a static page and assign that as your Latest Posts page as advised above.

Filtering by Year, you can simply add an Archives Widget to your Sidebar.

Date and Taxonomy archives are automatically created.

Ya thanks...But if I don't want to add an archive widget to the sidebar if I want to add a simple custom archive page where all the archives will be shown with date and taxonomy...Like in a single page, not a sidebar.
And I am enjoying GP Premium, really awesome.

I think the lack of coffee this morning has left my brain a bit fuzzy. Do you have an example site where i can see what you mean ?

No problem, actually it's my fault not able to tell you what actually I need. I am really new but learning...I have given you the site link in the private info area.

Hi there,

To add to the conversation:

Appearance-wise, GP has a pre-built template pretty close to WPBeginners which is Marketer -
https://gpsites.co/marketer/

For WPBeginner's archive page specifically, the main difference would be the separation margin between the articles but that can be addressed with this CSS -

.site-main > * {
    margin-bottom: 0;
    border-bottom: 1px solid #E7E7E7;
}

main#main {
    padding: 40px;
    background-color: white !important;
    box-shadow: 0 0 10px rgb(232 234 237 / 50%);
}

main#main .inside-article {
    box-shadow: none;
    border: none;
}

Another difference would be the breadcrumbs. WPBeginner uses this plugin for it - https://wordpress.org/plugins/breadcrumb-navxt/

And that can be hooked in through generate_before_main_content.

Yes, I have seen the marketer. but I already designed my other pages, I only need the archive page, in that case, what should I do?

Yes, I have seen the marketer. but I already designed my other pages, I only need the archive page, in that case, what should I do?

Remove any custom CSS that's adding columns to it and let the theme defaults do it. (there's no need for columns as WPBeginner displays all in 1 column)

And then apply the CSS I've provided. It should still be applicable as it basically just removes the separator margins and applies a border/box shadow similar to WPBeginner's archive. :)

oh ok ok, Now I understand...Thank you very much.

But If I import the marketer template. My other page's design will be deleted, right?

The CSS I got understand but how can I implement the time date filter as that website has and I can't find something like that in marketer...

And can I import these site templates for any one of my pages?

This archived topic is closed to new replies.