Winning Agent

Sales That Work

  • About
  • Store
  • Blog
  • The Stream
  • Forum
  • Jobs

Adding Comment area to individual Communities page (vs. archive page)

Home › Forums › Winning Agent Pro Theme › Adding Comment area to individual Communities page (vs. archive page)

Tagged: comments, community

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 6 months ago by barbarad.
Viewing 2 reply threads
  • Author
    Posts
    • December 8, 2014 at 2:51 pm #4112
      barbarad
      Participant

      Hi,

      We are using the Communities post type a little differently; we’ll be highlighting property buyers experiences and activities. Is it possible to add a comments section on each of the individual Community posts?

      Am new to Genesis, but don’t mind customizing functions.php or other .php templates. But hoping it’s some kind of hook.

      Thanks.


    • December 9, 2014 at 5:19 pm #4116
      Ginger Coolidge
      Participant

      Hi 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:

      Editing Your WordPress Site 101

      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
      Participant

      Hi Ginger,

      It worked like a charm, thanks so much for your help!

      Best,
      Barbara


  • Author
    Posts
Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Log In

Forum Login

Log In
Register Lost Password

Search Forums

StudioPress Real Estate WordPress Theme: Agent Focused Pro Theme
StudioPress Premium WordPress Themes: Winning Agent Pro Theme

Recent Replies

  • How to edit main page background image opacity
  • Fresh Install Issues
  • Remove Background Image
  • Sidebar on Homepage
  • Featured Page on Homepage Not Clickable
OptinMonster

Loan Types & Property Definitions

There are a lot of different types of mortgages, and there are a lot of different types of real estate property. Here is a list of the most common types of each. We’ve added some links to the most popular articles on the subject.

Read More

Real Estate and Mortgage Forum

We think getting many viewpoints to a particular question is important because it helps you to make better decisions. It’s so important that we have woven the Forum all throughout Winning Agent. We invite you to ask questions, make comments, and be part of the discussion.

Read More

Glossary of Real Estate Terms

Real estate and mortgage finance often times comes with its own unique language. If you work with it every day, it becomes 2nd nature, but most people don’t work with it every day. So we’ve created a glossary of mortgage and real estate terms.

Read More

Copyright © 2022 Winning Agent · Powered by the Genesis Framework · Contact Us
Become an Affiliate
This site uses affiliate links, but know that we only recommend products we personally use and enjoy!