Hello,
I am looking for the solution for a few days but I can’t find it .. π
I wish I could enable comments for events pages.
In the back office, I can easily choose to activate/desactivate the comments for pages and articles (as on all WP themes), but I don’t have that option for teams, players, staff members or events.
-> I think these are custom post types, but how to enable comments? What bit of code I have to edit or insert, and where?
Thank you kindly help me, your plugin is (almost) perfect.
For that you’ll need to edit the plugins\sportspress\includes\class-sp-post-types.php file and around line 220 where you have this: 'supports' => array( 'title', 'page-attributes', 'excerpt' ),
Use this instead: 'supports' => array( 'title', 'page-attributes', 'excerpt', 'comments' ),
(@nonofr)
10 years, 4 months ago
Hello,
I am looking for the solution for a few days but I can’t find it .. π
I wish I could enable comments for events pages.
In the back office, I can easily choose to activate/desactivate the comments for pages and articles (as on all WP themes), but I don’t have that option for teams, players, staff members or events.
-> I think these are custom post types, but how to enable comments?
What bit of code I have to edit or insert, and where?
Thank you kindly help me, your plugin is (almost) perfect.
https://ww.wp.xz.cn/plugins/sportspress/