Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress ruining widgets


  • zerocoolflo
    Participant

    @zerocoolflo

    Hell everyone,

    First I want to thank the developers for doing such a great job with this plugin (I just discovered it) and I hope I’ll get it working.

    I installed bbPress on my website and observed it ruined the forum’s sidebar (practically, the old sidebar was still active but pushed down and looked weird and at the top of the forum’s sidebar I had a message “comments are closed on this page”).

    Nonetheless I discovered the problem:

    Well, I am using the thesis theme on my website and I customized all my posts to show related posts by inserting this code in custom.css file:

    function my_related_posts() {
    if (is_single()) {
    global $post;
    $current_post = $post->ID;
    $categories = get_the_category();
    foreach ($categories as $category) :
    ?>
    <div class=”my-recent-posts”><h4>Additional Reading…</h4>

      <?php
      $posts = get_posts(‘numberposts=5&category=’. $category->term_id . ‘&exclude=’ . $current_post);
      foreach($posts as $post) :
      ?>

    • “><?php the_title(); ?>
    • <?php endforeach; ?><?php endforeach; ?>

    </div>
    <?php
    }
    wp_reset_query();
    }
    add_action(‘thesis_hook_after_post’,’my_related_posts’);

    I absolutely want to keep related posts on my posts.

    When I delete this “related posts code”, the sidebar works as it should.

    Any workaround/Suggestions?

Viewing 1 replies (of 1 total)

  • zerocoolflo
    Participant

    @zerocoolflo

    As I am watching this support forum, most of the time members are left to solve their own problems. Replies 0 (I know that I made this post 3 hours ago but I am reffering in general).

    Duh

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.