• I’m building a review feature for a class webpage, the general functionality of which is such:

    A student creates a post (of custom post type) that is then broadcast to a faculty site where the student’s post can be reviewed, commented on, and discussed.

    Right now the functionality is working; faculty can comment on the post once it’s been broadcast, and comments are not broadcast back to the parent post (which is good).

    The problem is that if the post’s author (the student) disables comments on their post, it closes commenting for the faculty. This can be manually adjusted by an admin user, but I’m wondering if there are any solutions that include allowing/forcing comments on the child post only.

    Any guidance is appreciated – thanks!

    https://ww.wp.xz.cn/plugins/threewp-broadcast/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author edward_plainview

    (@edward_plainview)

    On the child only? This would require a custom plugin that forces the child posts to have open comments.

    If you have a developer handy that can put together a plugin, I can help out with some tips on how to solve the problem?

    Thread Starter davidptracy

    (@davidptracy)

    Hi Edward,

    Thanks for the response!

    You got it: Comments enabled on the Child Theme only.

    I’ve developed a plugin to handle some custom post types, automatically set themes, generate static pages, etc. I’m at least a little savvy to plugin mechanics.

    Any tips you can provide would be greatly appreciated – thanks again!

    Plugin Author edward_plainview

    (@edward_plainview)

    The action threewp_broadcast_broadcasting_modify_post might be interesting.

    $bcd = $action->broadcasting_data;
    $bcd->modified_post->post_status = $text;

    Except you’re not looking for post status, but some other post column.

    The premium pack contains a ton of examples of how to modify posts. See the “protect child” plugins, for example.

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

The topic ‘Enable comments on child post only?’ is closed to new replies.