• I set up clean urls, and they work fine, with the one side affect: get_archives no longer works.
    I set up my clean urls to follow this template: /content/%postname% (example: /content/about for my “about” section/post)
    As a result, this is what my Archives pulldown menu turns into:
    <form name="archiveform" action="">
    <select name="archive_chrono" onchange="window.location = (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
    <option value=''>By Month</option>
    <option value="https://beoba.net/content/%">September 2004</option>
    <option value="https://beoba.net/content/%">August 2004</option>
    <option value="https://beoba.net/content/%">July 2004</option>
    <etc (shortened because lengthy bug descriptions offend Beel)>
    </select>
    </form>

    To view this in action, visit https://beoba.net . To view the source to index.php, click the “PHP Source” link at the bottom of the page.

Viewing 7 replies - 1 through 7 (of 7 total)
  • 1 example is plenty. Until more formats are made available you will have to use something other than /content/%postname%

    Thread Starter beoba

    (@beoba)

    Yes, I had thought of that when setting things up, I had decided that I’d rather have a link look like this:
    site.com/content/about
    Rather than this:
    site.com/content/<date that doesn’t make sense given in the context of a static page>/about

    Thread Starter beoba

    (@beoba)

    To see if it made any difference, I attempted to use /content/%post_id%/%postname%, which would solve any potential duplication issues, but the archives are still broken.

    Hi folks,
    I got similar problems after using permalinks. Everything works fine inspite of the links in the calendar. The archive-links in the calendar are constructed wrong and break up at the first “%”. For example in my calendar:
    href="https://www.ortegalink.com/blog/cl/%"
    (Could be studied at https://www.ortegalink.com/blog/ )
    Did anyone fix the construction of the URL in the calendar-code? My research only directed me to the ./wp-include/template-functions-general.php (or something like this). I could imagine, that the function get_archive_link() could be buggy with permalinks.
    I would appreciate if anyone could post one patch for this problem.
    Thanks and best regards
    Otti

    All of this is fixed in CVS. 1.3 will not suffer from this limitation/bug.

    Thread Starter beoba

    (@beoba)

    Neat. Looks like you have just provided me an excellent reason to get around to upgrading.

    rboren – sweet… one more thing… currently it (in 1.2, not CVS) the month and year need to be separated by a directory marker (ie, the “/”) … will it be possible to set up a permalink like thus:
    /archive/%year%-%monthnum%/%posttitle%
    That at least would make me happy.
    TG

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Clean urls breaks Archives’ is closed to new replies.