WordPress.org

Ready to get started?Download WordPress

Forums

Link to Archive Index Page (6 posts)

  1. TechGnome
    Moderator
    Posted 6 years ago #

    What I would like to do is have a simple link in my sidebar that says "Archive" and links to a page that displays and indexing of my archives. Building the page isn't the problem, I can handle that.

    The problem is the link itself. What do I link to? What should the URL be? It's not like there's an archives page that will then suck in my template's. The assumption is that people will have a laundry list of their monthly archives on the pages. I don't want that. I've got too much stuff. Besides, I'm going for something cleaner.

    I searched the codex, and I searched the forums. Nothing. I did find one thread with some one wanting to do the same thing, but then the OP followed up with "Never mind, thanks, I got it working now." And nothing more (thanks a bunch dude, never mind the rest of us).

    I'm welcoming comments, suggestions, ideas, question.

    -tg

  2. whooami
    Member
    Posted 6 years ago #

    ermm, well I used a stand-alone archive page, its not a wordpress "page" but it's written to use all the wp stuff, and I just called whatever.php .. used mod_rewrite to make it pretty, and linked to the cruft-free url.

    does that help?

  3. TechGnome
    Moderator
    Posted 6 years ago #

    meh, that's what I was afraid of.... I'm at the point where I don't really want (or care to) mess with my htacces file. That does bring up a question: Was your archive page in the site root? Or was it part of your template? I suppose it doesn't matter, if it's using the proper wp tags, I could have it in the root...then my link would just point straight to the file. Kinda defeats the purpose of the template, doesn't it?

    -tg

  4. whooami
    Member
    Posted 6 years ago #

    mines in my root, and if you look at my archives .. well you'll see its no different, aside from the changes I made recently which don't affect the style.
    and its really only 1 line in your .htaccess :P

    RewriteRule ^archives/?$ whatever.php [QSA,L]

    that said, you DONT have to do it that way

    --

    my archives is not completely hardcoded .. I do dynamically include the footer and the header.

  5. opie1
    Member
    Posted 6 years ago #

    rss

  6. opie1
    Member
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic