Home › Forums › Winning Agent Pro Theme › Adding Comment area to individual Communities page (vs. archive page)
- This topic has 2 replies, 2 voices, and was last updated 7 years, 6 months ago by
barbarad.
- AuthorPosts
- December 8, 2014 at 2:51 pm #4112
- December 9, 2014 at 5:19 pm #4116
Ginger Coolidge
ParticipantHi Barbara,
Interesting question, and I found the answer is yes! You have to change where the community post type is registered so it will support comments, and then you have to show them on the community single post page template.
Before you start making changes, even though you said you were OK with it, I always advise to have a look at Carrie’s post as a word of caution:
To add comment support to the Community/Communities custom post type:
Find the file post-types.php and open in a text editor. This file will be located in your Winning Agent Pro theme folder and then inside the lib folder. Have a look at line 25 that starts out like this:
'supports' => array( 'title', 'editor', 'author',
and add comments to it so it ends up starting like this
'supports' => array( 'title', 'comments', 'editor', 'author',
Save the file, we’re done with it.
Now open up the file single-wap-community.php in your text editor. This file will be back up one level in the theme folder. What you want to do is comment out line 20, since this entry removes the comments template from the individual community post. Put two slashes in front of it to comment it out, then save your file.
Now go to a community post and click to edit…you will probably have to click Screen Options at the top of the Dashboard and check Discussion and Comments so they will appear as options on the post. That’s it!
Regards,
Ginger
- December 11, 2014 at 7:13 pm #4128
barbarad
ParticipantHi Ginger,
It worked like a charm, thanks so much for your help!
Best,
Barbara
- AuthorPosts
- You must be logged in to reply to this topic.