Treehouse: Grow your CSS skills. Land your dream job.

WordPress “More Articles”. How to Link to/access Blog Archives?

  • # November 14, 2010 at 7:21 pm

    Hello all,
    I am trying to customize a wordpress theme. In the theme, there is a link at the bottom of the home page that says, “read more articles”. I, of course would like this to link to all older blog posts. Or the archives. In the admin panel for the theme, there is a spot for this exact purpose, but I’m not understanding. It says “This will be the destination of the Read More button at the bottom of the homepage blog posts :)” It is a dropdown list of all types of pages that, the link can be directed to. None of the options work. I just get a 404. On their support forum, someone else asked about this as well and he was directed to change this:


    To the following static address:

    Ok, well that’s fine. I can understand that, but I don’t know what static page or address to direct it to? Is there some default folder that all old posts are kept in? So I can direct the link to go to that page or directory?

    # November 15, 2010 at 10:07 pm

    usually people get that information from the address bar. Can you get to the archives another way? if so, you check the address and then you will know what to set it as.

    # November 16, 2010 at 12:15 am

    haha, no that’s the problem. I cannot access them all at once anywhere. I can access posts by each month, but that is it. Very odd.

    # November 16, 2010 at 1:28 pm

    there is a widget in the admin area to show archives. activate it and use that

    # November 16, 2010 at 9:04 pm

    I have that in my sidebar, but that is not what I’m talking about. Basically I just need to hardcode a link in there. But I have no clue where I can direct that link to go. I tried going directly to but that did not work. There has to be a physical address for all my posts shouldn’t there?

    # November 16, 2010 at 9:07 pm

    For example I just went to and that took me to all my posts that were tagged as random. So how would I access all 58 posts of my blog, at once?

    # November 17, 2010 at 11:29 pm

    You can make a custom template and use it on a new Page in WordPress. Just use the wp_get_archives template tag in the template wherever you want them all listed.


    < ?php
    Template Name: Archives Index
    < ?php get_header(); ?>
    /* some divs, ect. */
    < ?php wp_get_archives(); ?>
    /* closing divs, blah, blah */
    < ?php get_sidebar(); ?>
    < ?php get_footer(); ?>

    Make a new page using this template in the little drop down box on the right side under where you can select a parent, title it “Archives” and don’t add any body text. Ding! An archives page fresh out the oven.

    # November 18, 2010 at 9:13 pm

    Thank you sir! I will try this asap! Appreciate all the replies.

    # November 21, 2010 at 12:21 pm

    ok, so when doing that, I get a list of months that are clickable and then you are taken to each post that was written in that month. Will work, but I would prefer a way to actually display all posts chronologically. Display a summary of each post without having to click on each individual month. Does that make any sense to anyone?

    # November 21, 2010 at 12:42 pm

    I used

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

    and now it displays each post’s title and they are clickable links, but how do actually display each post’s content also?

    # November 23, 2010 at 10:19 pm

    Does, what I’m asking make any sense? Did I explain it ok?

    # February 7, 2011 at 3:38 pm

    I have the same question. Did you figure it out, Preeminent?

    # February 9, 2011 at 11:43 pm

    Hello! Well no, not really! It’s odd that I can’t find a clear answer on this. I would like a page with the POST TITLE and then some of it’s content with a “Read More” link, then it moves on to the next POST TITLE and some of the content, and so on, and so on……..

    # February 10, 2011 at 4:07 am

    If you just want a list with posts, can’t you just use query_posts?

    If you want to use wp_get_archives, try using the following code:
    < ?php wp_get_archives('typ=postbypost&echo=0'); ?> or maybe even try setting that echo parameter to 1, so: echo=1.

    When reading over the function reference here, you can use the echo paremeter to either display the output or return it. I’m not 100% sure about what either means, but one of them might be to display the actual posts, like you want.

    If it does not, I think you’re going to need to use query_posts.

    # February 11, 2011 at 12:55 am

    Thanks for the reply Bob! I will experiment with this asap!

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.