Support » Fixing WordPress » Archives Link

  • Okay, ummm another dumb question. I want to manually add a link to my archives on my site… what url would that be? I mean for every month wouldn’t it be like /2004/06 etc etc? I hope you guys understand what I’m asking. I stripped down my wordpress index page so that I could use it in an iframe, but now I need to manually put the “archives:” link on my page.
    Thanks for any help <3

Viewing 13 replies - 1 through 13 (of 13 total)
  • WP will do that automatically.
    Just add this wherever:
    <li id="archives"><?php _e('Archives:'); ?>

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

    Thanks =D

    Eek. Hmm, what do I do if I want to put this archive link on a separate page? Like a whole other subdomain. My wordpress weblog is in an iframe, but I want the archive on my main page which is a whole othe rdirectory all together. Is that php include the only way?

    what other way are you looking for?

    Any “other way”…
    See, I need to put the archives link on my weblog, and have it target my iframe, which holds my wordpress entries. I’m dealing with two different subdomains. My wordpress is on blog.pink-pistol and my weblog is at x.pink-pistol. I need the archives link on x. and have it come up in blog. Ugh. I just need the actual url to my archives… not the php include thing. I’ll do it manually, it isnt an issue. I just need a way for visitors to see my older entries…
    Thanks,
    Ashley

    Fire up the archives you need. Then copy the url out of the address bar.

    Just use a regular link text link to whatever archive you want to direct the reader to

    I understand now, if only I could find my archives. I stripped down my index page and I have really no way of getting to my archives to copy the URL. I’ve looked through all the wordpress folders and I don’t really understand where the archives are even located. In the url it’s always “archives/2004/03” etc etc but I see no folder called “archives” in the first place….
    It’s getting frustrating since this is such a dumb question to begin with. Is there even an actual archives page?

    The archives links on the menu simply display all the posts that fall within the date range specified
    IE: posts from May, or all the posts from 2004 and so on.
    So no, there is no ‘actual archives page’
    If you are trying to direct someone from another page to your ‘archives’ simply use a regular link to whatever dates you want to send them to
    like : pinkpistol.com/archives/2004 or whatever

    You seem to have also removed the link to the wordpress homepage.

    Well I added the WordPress link back to my site. Didn’t realize that it was gone, but it must have been for quite some time.
    I don’t seem to have an “archives” directory anywhere. Blah, I give up.
    Thanks for your help <3

    That’s because there is no archives directory….. It’s a virtual thing. The only “other way” to create the links yourself, like so: http://www.yoursite.com/archives/_YEAR_/_MONTH_/_DAY_
    or just http://www.yoursite.com/archives/_YEAR_/_MONTH_
    for monthly views…. but that means you create that link for EACH AND EVERY MONTH you want displayed. There’s no other way to do it w/o PHP.
    TG

    I see now. I was fooling with those links but I always get a 404 error.
    I understand now, it’s just a matter of getting it working right. Thanks =\

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Archives Link’ is closed to new replies.