WordPress.org

Ready to get started?Download WordPress

Forums

Archives Link (14 posts)

  1. AshleyxCore
    Member
    Posted 10 years ago #

    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

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    WP will do that automatically.
    Just add this wherever:
    <li id="archives"><?php _e('Archives:'); ?>

      <?php wp_get_archives('type=monthly'); ?>
  • AshleyxCore
    Member
    Posted 10 years ago #

    Thanks =D

  • AshleyxCore
    Member
    Posted 10 years ago #

    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?

  • carthik
    Member
    Posted 10 years ago #

    what other way are you looking for?

  • Anonymous
    Unregistered
    Posted 10 years ago #

    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

  • Root
    Member
    Posted 10 years ago #

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

  • clay
    Member
    Posted 10 years ago #

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

  • AshleyxCore
    Member
    Posted 10 years ago #

    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?

  • clay
    Member
    Posted 10 years ago #

    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

  • clay
    Member
    Posted 10 years ago #

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

  • AshleyxCore
    Member
    Posted 10 years ago #

    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

  • TechGnome
    Moderator
    Posted 10 years ago #

    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

  • AshleyxCore
    Member
    Posted 10 years ago #

    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 =\

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.