Create course forums in a specific subforum

Home Forums Legacy Support Support queries How-to & Troubleshooting Create course forums in a specific subforum

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #41518
    isigma
    Spectator
    How to set the course editor (front-end) to create course forums in a specific subforum, not in the root?
    #41713
    H.K. Latiyan
    Participant
    Sorry this is not possible in front end as of now. You can only create a forum from front end and then connect it in another forum from backend only. You can create a feature request for this in our feature request forum.
    #41740
    isigma
    Spectator
    can you tell me what php file is exactly creating those front-end initiated forums?
    #41969
    H.K. Latiyan
    Participant
    Try adding the following code in child theme or theme customiser. add_filter('wplms_front_end_forum_vars','wplms_sub_forum');         function wplms_sub_forum($args){             $parent_forum_id = 2345;             $args['post_parent'] = $parent_forum_id;             return $args;         }
    #42062
    isigma
    Spectator
    It works. Thank you for the solution. Is it possible to get the course's category term from within that filter? In that way I could assign different parent forum IDs?
    #42096
    H.K. Latiyan
    Participant
    Assuming you want to add a dropdown for the parent forum. This is not possible, there is no provision for this in wplms as of now.
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Create course forums in a specific subforum’ is closed to new replies.