• Resolved dhtc

    (@dhtc)


    I’m building an interactive site that will have public and private posts as well as a public/private forum.

    I’ve noticed that Private posts do not create topics in either the private or public forums I’ve created. Public posts can start topics in both the public and private forums.

    Is there a config option I’ve missed or is this a bug that can be fixed?

    https://www.ads-software.com/extend/plugins/bbpress-post-topics/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi dhtc –

    This plugin currently creates topics only for published posts. But there’s no good reason for private posts to be excluded, so I’ll add them to the next release.

    In the meantime, you can add support for private posts by adding ‘private’ to the array filtered by bbppt_eligible_posts_status

    Please let me know if you have any other questions!

    – David

    Thread Starter dhtc

    (@dhtc)

    I had a quick look through the plugin files and couldn’t find that function.

    Can you point me in the right direction?

    Thread Starter dhtc

    (@dhtc)

    After a deeper look the correct array is:

    bbppt_eligible_post_status

    Changing it to the code below worked like a charm.

    /** Only process further when the post is published */
    if( ! in_array( $post->post_status, apply_filters(‘bbppt_eligible_post_status’, array( ‘publish’, ‘private’ ) ) ) )
    return;

    Sorry about that typo! I’m glad you were able to locate the correct hook.

    Please let me know if you have any other questions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Private posts do not create forum topics’ is closed to new replies.