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:
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?
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.
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 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?
For example I just went to www.mysite.com/blog/random 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?
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.
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.
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:
<div class="article_nav">
<a class="p" href="<?php echo strtolower(get_option('theme_blog_page')); ?>">
To the following static address:
<div class="article_nav"><a class="p" href="http://www.yoursite.com/?page_id=499">
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?
Example:
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.
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.