Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • @jmteshima, I had the same issue and it was because the new version of Download Monitor (4.0.5 here) seemingly has an issue with WordPress “pretty permalinks”, similar to this issue from 11 months ago.

    In the WordPress admin backend, try setting “Settings → Permalinks → Common Settings” to “Plain”. Download links should now look like http://example.com/?download=slug. If that resolves the issue, you can get a permanent workaround by placing this line into your .htaccess file:

    RewriteRule "^download/(.*)$" "?download=$1" [PT,L]

    Or more properly, these lines (though I did not test these):

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    RewriteRule "^download/(.*)$" "?download=$1" [PT,L]
    </IfModule>

    After that, you should be able to re-enable your pretty permalinks settings and it should still work.

    Thread Starter mattanius

    (@mattanius)

    Thank you Demis! I tried it out now and your new feature works like a charm.

    Hello jongorrie, I just confirmed that comment counts on overview pages are correct with the TwentyTwelve theme (which I use), and they are, for all language versions.

    So the problem seems to be specific to your theme: I suppose that the rendering of comment counts is customized in your theme for overview pages, and you would have to detect what code (in functions.php maybe?) in that theme is responsible for it. I’m sorry – can’t give you a direct hint or I would have to dive into debugging the theme myself.

    Thread Starter mattanius

    (@mattanius)

    Yes, I see. Thanks a lot for caring. It’s a rare case when this happens anyway, so not a big thing.

    If the task at hand is to display merged comments threads from all language versions of a post / page below every language version, I discovered that removing polylang’s comments_clauses filter together with the WPML Comment Merging plugin works very well.

    That plugin is meant for WPML, not Polylang, but because of their similarities this works amazingly well. Never found a hack like this … it’s like trying a random key and it opens the door 🙂

    Instructions (tested with WordPress 3.5.1):

    (1) Install and activate the WPML Comment Merging plugin.

    (2) Apply these two patches to wp-content/plugins/wpml-comment-merging/wpml-comment-merging.php. For me, with just two languages and just posts it worked without them, but they did not hurt either.

    (3) Into functions.php of your template or child template, add this to remove the polylang comments_clause filter (because else, the correct merged count of comments is displayed, but still comments of foreign language posts would be filtered out):

    function polylang_remove_comments_filter() {
        global $wp_filter;
        global $polylang;
        remove_filter('comments_clauses', array(&$polylang, 'comments_clauses'));
    }
    add_action('wp','polylang_remove_comments_filter');
Viewing 5 replies - 1 through 5 (of 5 total)