Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum topics not showing up :-(

  • @vojtasvoboda

    Participant

    I just installed last version of bbPress 2.5.5 on WP 4.1. with premium Basix theme. Then created new page Forum with slug “forums” and to content put placeholder [bbp-forum-index]. Then created new Forums and topics, but I can see only Stick topics.

    My forum detail looks like that:

    https://www.dropbox.com/s/s8gy1o4axjt69v6/Sn%C3%ADmek%20obrazovky%202015-03-16%20v%C2%A015.30.39.png?dl=0

    I use multisite WP. When I disable all CSS, in HTML there also no topics.

    Does any know how to debug this behavior? When it shows 2 topics, but I can’t see it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • @vojtasvoboda

    Participant

    When I put

    <div id="bbpress-forums" data-topic-id="<?=bbp_get_topic_id()?>">

    to the template, it prints me: data-topic-id=”0″.

    @vojtasvoboda

    Participant

    When I put

    <div id=”bbpress-forums” data-forum-id=”<?=bbp_get_forum_id()?>”>

    to the template, it prints me: data-topic-id=”5080″, so it looks that ID for fetching topics is right.

    @vojtasvoboda

    Participant

    bbp_has_topics() returns false 🙁

    @vojtasvoboda

    Participant

    When I debuged WP_Query in bbpress/includes/topics/template.php on line 203, it prints:

    SELECT SQL_CALC_FOUND_ROWS  wp_2_posts.ID FROM wp_2_posts  INNER JOIN wp_2_postmeta ON ( wp_2_posts.ID = wp_2_postmeta.post_id ) WHERE 1=1  AND wp_2_posts.post_parent = 5080  AND wp_2_posts.post_type = 'post' AND (wp_2_posts.post_status = 'publish' OR wp_2_posts.post_status = 'closed' OR wp_2_posts.post_status = 'private' OR wp_2_posts.post_status = 'hidden') AND ( 
      wp_2_postmeta.meta_key = '_bbp_last_active_time'
    ) GROUP BY wp_2_posts.ID ORDER BY wp_2_postmeta.meta_value DESC LIMIT 0, 15

    with post_type=post, but it should be post_type=topic. Damn.

    @robin-w

    Moderator

    probably either a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Then come back

    @vojtasvoboda

    Participant

    Plugins – all plugins deactivated and still doesnt work 🙁

    Themes – try to switch to TwentyEleven and works well.

    I still dont know how to force post_type=topic to SQL query mentioned above.

    @robin-w

    Moderator

    talk to your theme provider

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar