Wordpress Debugging

Not everything always plays nice, and some specific issues arise with wordpress. Documented issues, and their fixes are available. If you've found a conflict or bug and found your own fix, let us know: info [@] muut.com!

Disqus Importer:

If you are importing disqus comments, after using our importer you'll want to add this code to your functions.php file to integrate your old comments into your new Muut commenting system.

add_filter( 'muut_post_comments_domain', 'my_muut_filter_in_general_for_domain', 10, 1 );
function my_muut_filter_in_general_for_domain( $domain ) {
    $domain = 'general';
    return $domain;
}
​
add_filter( 'muut_comments_path_for_post', 'my_muut_filter_disqus_path_to_posts', 10, 3 );
function my_muut_filter_disqus_path_to_posts( $path, $post_id, $type ) {
    $post = get_post( $post_id );
    $slug = $post->post_name;
    $path = 'general';
​
    if ( !$type || $type == 'flat' ) {
        $path .= ':' . $slug;
    } else {
        $path .= '/' . $slug;
    }
​
    return $path;
}

Sidebar display issues

This fix involves editing your theme's functions.php file. Be sure to back up a copy of your functions.php file before editing.

Some WordPress themes have difficulty displaying Muut correctly. This is usually a result of the CSS or theme rules conflicting with the Muut plugin. We've got two potential solutions for this issue. If one doesn't work, go ahead and just try the other.

Add one of these to your functions.php file

add_filter( 'muut_forum_template_use_primary_theme_sidebar', '__return_false' );

If that doesn't work, try this one instead:


add_filter( 'muut_use_packaged_forum_template', '__return_false' );