Skip to:
Content
Pages
Categories
Search
Top
Bottom

Create Discussion for each Custom Post Type

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

  • AdventureRidingNZ
    Participant

    @adventureridingnz

    In one of the topics for posts files there is a statement that defines what post types it works for.

    Updated: in index.php look for

    /** Only process for post types we specify */
    		if( !in_array( $post->post_type

    and you can add your custom post types in there


    andreasyeah
    Participant

    @andreasyeah

    Hi,

    can you tell me please which line? i dont fine it ๐Ÿ™


    AdventureRidingNZ
    Participant

    @adventureridingnz

    Lines 191 and 192 of wp-content/plugins/bbpress-post-topics/index.php


    andreasyeah
    Participant

    @andreasyeah

    ok got it! since i am not that much into codes,

    could you please tell me where i have to add the post type if the post type is “release” for example:

    /** Only process for post types we specify */
    if( !in_array( $post->post_type, apply_filters( ‘bbppt_eligible_post_types’, array( ‘post’, ‘page’ ) ) ) ) {
    return;

    thank you very much for your help ๐Ÿ˜‰


    AdventureRidingNZ
    Participant

    @adventureridingnz

    array(โ€˜postโ€™, โ€˜pageโ€™, 'release')


    stephengunn
    Participant

    @stephengunn

    Wow, this thread is so close to answering the question I have. I feel like I should just ask my question here instead of creating a new thread.

    I am using custom post types for lessons and want to use bbPress to run the comments. I settup the array / plugin as listed above and it works great.

    But is there any way to have comment threads posted to specific forums?

    So, custom post type ‘business’ gets a thread in the Business Forum and the custom post type ‘creative’ gets a thread in the Creative Forum?

    Is this possible?

    Thanks guys


    salvador123
    Participant

    @salvador123

    Yes, similar to what happens in wordpress.org/support/plugin/?

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