WordPress.org

Ready to get started?Download WordPress

Forums

Archives? (9 posts)

  1. peb
    Member
    Posted 9 years ago #

    Is archiving automatic in WordPress? If not, can you point me to the docs wheich explain how to use it?
    Thanks,
    PEB

  2. junesix
    Member
    Posted 9 years ago #

    By archiving do you mean backing up your mySQL database? Or do you mean accessing old posts? If you're referring to the former, there are posts describing how to back up the mySQL DB. If the latter, WP doesn't archive posts per se because everything is built using the mySQL data. When you call an "archived" post, WP retrieves the content from your DB and dumps it into the appropriate template.

  3. peb
    Member
    Posted 9 years ago #

    I really meant accessing old posts. When do old posts drop into the archived category? At the end of the month? >30 days old? Variable?
    JEB

  4. Anonymous
    Unregistered
    Posted 9 years ago #

    Hey, peb, you need ot get out of your way of thinking. All posts are archived in the sense they are stored in the database, whether or not they show up on your front page is determined solely by you (you tell WP what to pull out of the database and display). You can set WP to display X number of posts (regardless of how old) or post x days/months/years old. You can even tell WP to display only posts with "tommy-knockers" in the content (or without).

  5. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    Posts are automatically available via any archive view. Everything is dynamic, there is no "archive" to be generated at the end of the month or at any other time. Let's take a post named "Test Post" in the category "Test Cat" that was posted on 2004/06/07 by "Test Author" as an example. Given the default permalink structure, this post will immediately show up in the pages at:
    /archives/2004/06/07/test-post/
    /archives/2004/06/07/
    /archives/2004/06/
    /archives/2004/
    /archives/category/test-cat/
    /archives/author/test-author/
    Everything is just a database query.

  6. cheezepie
    Member
    Posted 9 years ago #

    I'm new to WP and am having problems related to this thread.
    Could someone explain how to set up an archive area of a site using WP? I know that by default all posts are in the DB and that they seem to use the index template when a user views them.
    However, I want to use a different template for archived posts. Is this possible with WP?
    Thanks in advance

  7. carthik
    Member
    Posted 9 years ago #

    You can create different templates, if you mean different stylesheets. The "template" in wordpress is index.php. It behaves differently depending upon the parameters passed to it.
    http://blog.carthik.net is almost a default index.php . If you like the archives there, then you should like them on wordpress.

  8. joy
    Member
    Posted 9 years ago #

    Guys, I think there is a misunderstanding here. The question about the archives (which I also have) should really be termed as "what are the archive tags?"
    For example, take a look at my archive structure in my index.php
    <?php get_archives('monthly'); ?>
    Now, what are the tags that one can use to influence how the monthly archives are displayed?
    (A sample problem: how do I change the fact that only 5 of my archives are being shown at any one time? Ironically enough, in the options menu I have my index page to show only 5 entries at once. Now I'm smart enough to realize where the index page is being influenced, but can I change the behavior of my archive page by adding some new element to that php get_archives tag?)

  9. OperaManiac
    Member
    Posted 9 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.