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?
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 http://www.mysite.com/blog/archives.php but that did not work. There has to be a physical address for all my posts shouldn’t there?
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.
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.
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?
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……..
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.
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".