Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress forum posts not appearing in activity stream


  • Peter Hardy-vanDoorn
    Participant

    @petervandoorn

    Recently updated to BP 1.7 with a self-developed child theme of BP Default (which does not modify any BP functions, only adds additional pages for non-BP stuff). And have migrated over to bbPress 2.3.2 (not through choice, but because the whole thing corrupted on me!) Have tried the usual trouble-shooting techniques of changing theme, turning off plugins, etc).

    My problem is that bbPress forum posts are not appearing in the activity stream.

    Anyone got any insights?

    Cheers

    Peter

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

  • r-a-y
    Keymaster

    @r-a-y

    If you disabled search engines from indexing your site (under “Settings > Reading” in the WP dashboard), then bbPress will not add any activity entries to the site.

    Here’s a ticket I posted on the bbPress site about this:
    https://bbpress.trac.wordpress.org/ticket/2151

    To override this behavior, add the following snippet to your theme’s functions.php:
    add_filter( 'bbp_is_site_public', '__return_true' );


    Jay Collier
    Participant

    @jcollier

    Thank you! That was exactly what I was looking for!


    akukskuks
    Participant

    @akukskuks

    Thank you @r-a-y!!


    jhave2
    Participant

    @jhave2

    hi! i have exactly same problem….

    tried inserting add_filter( ‘bbp_is_site_public’, ‘__return_true’ );
    into themes functions.php
    but it made no difference….

    is there a specific place in the .php where the filter needs to go?

    many thanks!


    @mercime
    Participant

    @mercime


    jhave2
    Participant

    @jhave2

    Thanks! That worked.
    But only for new posts,
    is there any way to retroactively list posts created before?


    Biswadip
    Participant

    @biswadip

    Thanks a lot @r-a-y and @mercime – I have the same issue as @jhave2 – any way of adding older topics and replies to the stream?

    Thanks


    shanebp
    Moderator

    @shanebp

    @biswadip

    Using some custom sql is probably the simplest approach for gathering old entries.

    But if it’s in the activity stream, those entries should be pushed off the first page very soon so perhaps you can justify not bothering ? 🙂


    Biswadip
    Participant

    @biswadip

    The filter in the link posted by @mercime writes the forum data from the wp_posts table to the bp_activity table.

    So I suppose legacy posts could be transferred from one table to the other by writing the values from the columns of one table to the columns of the other.

    But the id of the same entry in the two tables are different so you would need to get the id of the last item in the bp_activity table and then increment the id’s for each new row added from the wp_posts table. I am not experienced enough to be able to estimate the difficulty of this task – does anyone else have any idea?


    Biswadip
    Participant

    @biswadip

    Good point @shanebp and thanks for the pointer! 🙂

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘bbPress forum posts not appearing in activity stream’ is closed to new replies.
Skip to toolbar