Skip Navigation

[Resolved] I need to add live comment section for custom post type(single article)

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#559251

Dear Team,

1) I need to add live comments section for custom post types, for single articles. I did not find any shortcode for this.

2) I need page views count to be displayed at article pages. How can I achieve ?

Please help me.

#559360
Screen Shot 2017-08-13 at 3.31.45 PM.png
Screen Shot 2017-08-13 at 3.28.56 PM.png

1) I need to add live comments section for custom post types, for single articles. I did not find any shortcode for this.
Hi, you can manage this setting in the Post Types editor. Go to Toolset > Post Types and edit your CPT. Look for the section called "Sections to display when editing (CPT)", and check "Comments". Once this is enabled, you can turn discussion on or off for each post, in the post editor screen. See the attached screenshots. If you cannot see the Discussion and Comments areas on your post type editor after checking "Comments", then you may need to enable them by going to the post editor screen and clicking "Screen Options" in the top right corner.

2) I need page views count to be displayed at article pages. How can I achieve ?
Page view counts aren't something Toolset is designed to provide, so a third-party plugin is probably the easiest way to accomplish this. Otherwise, you must use the WordPress API to count page views manually using PHP. Here's a post on Stack Overflow that describes this process:
https://wordpress.stackexchange.com/questions/33460/how-to-display-number-of-page-views-on-a-post

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.