• 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

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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?

    Thread Starter TechGnome

    (@techgnome)

    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

    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 😛

    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.

    rss


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link to Archive Index Page’ is closed to new replies.