WordPress.org

Ready to get started?Download WordPress

Forums

can't see archive (10 posts)

  1. webhead
    Member
    Posted 8 years ago #

    Hi, newbie to WordPress here. I imported my old blogs from Blogger but now I want to archive them. I made an archive index page but can't find instructions on getting the archives to be listed there. How do you make archives and then list them? Thanks.

  2. Ryan Fitzer
    Member
    Posted 8 years ago #

    Create a template page for the archives and when writing a page in the wp admin, select the template you want for the page (in the sidebar).

  3. webhead
    Member
    Posted 8 years ago #

    Thanks, I'll check that out.

    I don't see anyplace in the sidebar or anywhere on the screen to choose which template to use. There's a Write Page tab at the top, but it's just for adding a new page, not choosing a template.

  4. webhead
    Member
    Posted 8 years ago #

    I also tried Options-->Reading and set it to 30 days for posts, but it still shows all posts.

  5. webhead
    Member
    Posted 8 years ago #

    I just noticed something:

    If I look at a specific post, there's a calendar and archive list on the left. But if I just view the main blog address, the calendar and archive list are gone. Even so, it should never display more than the last 30 days of posts.

    Help please?

  6. Ryan Fitzer
    Member
    Posted 8 years ago #

    I'm a little confused so here are a couple of questions.

    1. What theme are you using?
    2. Are requiring the archive list only in the sidebar of every page or a whole page dedicated to the archives?

  7. webhead
    Member
    Posted 8 years ago #

    I'm using the TemplateXtreme Sample 1.0 theme (my blog is at http://www.fether.net/blog/ ).

    I'd like the archive list to appear on the sidebar of every page. It does on individual post pages but I want it also on the "main" page. I tried adding a page for listing the archives just because I have no clue how to get an archive list, not because I want them on a separate page.

    Even so, it should only be listing 30 days of posts per page and not all posts of all time, so maybe that's a separate problem.

  8. Ryan Fitzer
    Member
    Posted 8 years ago #

    Ok, now I understand (i really need to ask these questions in the begining). This means altering the sidebar.php. Here's a start from the codex:

    http://codex.wordpress.org/Template_Tags/get_archives#Displays_Last_10_Posts

  9. webhead
    Member
    Posted 8 years ago #

    Thanks! The archive list now is doing what I wanted.

    But I'm still getting the whole database of posts listed on the main page. I go into Admin and tell it to only show 7 posts per page but it ignores it. I found http://codex.wordpress.org/The_Loop_in_Action that says it should do that, but it isn't working.

  10. webhead
    Member
    Posted 8 years ago #

    Well, the only way I could get it to stop displaying the whole database on the main page was to go into the theme's index.php and hard-wire the number of posts per page. I went to line 38 where it has query_posts('posts_per_page=-1');
    and changed it to
    query_posts('posts_per_page=7');

    UPDATE:
    It seems to (almost) work now. I just deleted the whole content between the parenthases above. But it's still showing 7 posts per page even after I changed it to 5 in the admin area.

Topic Closed

This topic has been closed to new replies.

About this Topic