Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jclark

    (@jclark)

    Thanks vkaryl. I considered .htaccess redirects, but the only way I can think to do that is to have one for each of my (300+) posts (yikes).

    For example, /weblog/tech/foo/ might now be /weblog/2005/02/07/foo/, but /weblog/tech/bar/ might now be /weblog/2004/09/30/bar/. WP can understand the old category-permalinks, but only when I make that my permalink style, at the expense of date-permalinks. I just need some way to get it to recognize both.

    jclark

    (@jclark)

    The original poster’s issue appears to be resolved, although I’m experiencing a related issue with WP2.0 and PHP Markdown 1.0.1c… reference-style links defined at the end of the document don’t work with <!--more--> if only the excerpt is showing. I’m not sure this is easily fixed without changing WP (but see below for workaround). Here’s a sample Markdown post:

    blah blah blah [link][1] blah
    <!--more-->
    blah blah blah [other link][2]

    [1]: (link URI)
    [2]: (link URI)

    The problem is the the_content() (defined in wp-includes/template-functions-post.php) calls get_the_content(), which splits the original post if <!--more--> is present and there’s more than one post on the current page. After getting back the top of the post from get_the_content(), the_content() then applies filters (including markdown).

    The workaround is to move any reference link definitions used before the <!--more-->, up before the <!--more-->. Like so:

    blah blah blah [link][1] blah

    [1]: (link URI)
    <!--more-->
    blah blah blah [other link][2]

    [2]: (link URI)

Viewing 2 replies - 1 through 2 (of 2 total)