0
votes
0answers
13 views

Turn off comments for given CPT checkbox?

I'm wondering what's the best way of turning off comments for a Custom Post Type? I don't want to turn it off completely which is quite easy but to create a checkbox in wp-admin that will turn off ...
1
vote
2answers
69 views

Count all comments of a custom post type

I know how to count comment per post, user and in total but i am having problems getting the total amount of comments post in a specific post type. I guess i can loop trough all the posts and count ...
0
votes
1answer
153 views

get comments by current user inside page template

I want to add a page template inside my custom post type and retrieve inside that page the comments posted by current user. I have this code for getting the current user: <!-- GET CURRENT USER ...
-1
votes
2answers
52 views

changing default comment form arguments [duplicate]

I want to change the default comment form title_reply, label_submit ... just on my CPT without affecting the default comment form but I can't get it to work without affecting the default ones. First ...
-1
votes
1answer
89 views

add comments custom fields after user is logged in

I want to add two custom fields inside comments on a CPT after the user is logged in on. This is the code for creating the custom fields: function debate_comment_fields( $fields ) { if( ...
0
votes
1answer
60 views

comments hooks on custom post type

First, this is what I want to achieve: I want to add a comments hook on a CPT which is asking users to be registered and logged in to be able to post a comment. And after the user is logged in to ...
0
votes
1answer
45 views

custom comment fields on CPT

I want to create few comments custom fields for my CPT and remove the default ones. I will have just two custom fields more exactly 2 radio inputs. Here is my code: function ...
0
votes
1answer
37 views

unapprove comments on custom post type

I have registered a custom post type and I want to unapprove comments by default on this custom post type without affecting the default posts/pages which is set to approve. I've looked through the ...
0
votes
1answer
35 views

Author profile comments system

I have a custom PHP file to get all the users/authors from the DB in WP, so it's all showing correctly and working BUT, I want to make the comment to work properly, what i did now is: <?php ...
1
vote
1answer
79 views

custom comments on specific post type

I have a custom post type called debate and I want to create some custom fields just on this post type. So, I have this code: function debate_comment_fields( $fields ) { if( is_singular( ...
0
votes
1answer
581 views

Custom post type: can't enable comments by deafult

I want to enable comments for custom post types just like they are for standard posts, but can't seem to get it to work. In functions.php, as part of registering my custom post type, I have this: ...
0
votes
1answer
269 views

Custom Post Type Set Comments ON by default without show METABOX

I've created a new custom post type for a specific posts. The posts from my new custom post type, have - by default - set the comments to "off". I need to the comments to be "on" by default. In my ...
1
vote
1answer
50 views

How to assign classes to all elements?

Is it possible to assign classes to elements of certain type? For example, all paragraphs in the post body or comment body should have class="paragraph", all unordered lists in post body should have ...
2
votes
1answer
206 views

Custom comment status possible?

I am a newbie to WordPress and I have some experience in PHP programming. Recently, I have a lot of comments for my WordPress blog and I wanted to manage them in better order. I wish to "archive" ...
0
votes
1answer
85 views

Enable comments for post when comments meta box removed

I've hit the issue described in '11: "Enable comments for post with comments meta box removed" and I'd like to ask for your help to adapt the mentioned there code to the current wordpress version. I ...
0
votes
1answer
123 views

Comment moderation with disqus comments

Comment moderation on custom post types this answer shows moderation on custom posts. Is this possible with disqus?
0
votes
1answer
175 views

wp_query and comment_parent - select only posts with top level comments

I have a custom post type of 'films', and I'm creating a number of search filters using wp_query. All are working fine, but I now need to add in an option of exclude results that dont have any top ...
0
votes
3answers
422 views

Insert data on comment post

I am trying to find reference for comment_post to insert custom data to custom table when comment post. I want to insert below things to my custom table Comment's Post ID Custom content (which ...
2
votes
1answer
131 views

“Allow Comments” box cannot be checked

I've registered a custom post type, ensured that 'supports' has 'comments', and comments are allowed on new posts under settings -> discussion. I do see the check boxes for allow comments and allow ...
0
votes
1answer
253 views

Get the latest comment from a custom post type where depth = 1?

Happy new year everyone. I've been struggling with this one for a while. I need to get the latest comment from a custom post type, but ignore any child comments i.e. only look at comments with a ...
0
votes
1answer
132 views

custom comments form for custom post type

Hello everyone I am creating a theme dedicates to hotels display and booking in which I have created a custom post type 'Hotels' so now I want a mechanism to book the hotel rooms and a "book now" ...
0
votes
4answers
127 views

Custom setup of wordpress comments that are displayed

I have setup in admin to have 5 comments per post display, which is what I want, and newest at the top. But the problem is when a 6th comment is made it is the only one displayed and you can read ...
0
votes
1answer
295 views

Comment moderation on custom post types

I know that I can require all of the comments on my site to be moderated, but is there a way of forcing moderation for a specific custom post type (i.e. my CPT "species") whilst allowing instantaneous ...
1
vote
3answers
5k views

Why are the comments disabled by default on my custom_post_types?

I am using a custom post type + taxonomies in a podcast solution for a client. The setting (settings >> discussion) for comments is set to "allow comments". When I add / edit posts under the "posts" ...
0
votes
2answers
515 views

How could I create a 'private comments' section on a custom post type?

Related to my How do I create a custom post type for a training CMS in WordPress? question, I would like to know how I can create a private comments section for a custom post type (or any post type ...
2
votes
2answers
775 views

modify all posts of a category to “no comments allowed”

I'm looking for a way to modify all posts of a certain category to be "no comments allowed" without going into each post settings, one by one, and modifying manually. Perhaps a MySQL statement? ...
1
vote
1answer
508 views

Recent comments on author page?

I'm creating an author.php page and I'd like to show comments as well as posts from a custom post type. I already have the list of posts but I'm looking into an efficient way of displaying the most ...
2
votes
3answers
663 views

Custom comment type maybe?

(First of all, sorry for bad english) If there are people here using wordpress as cms, you probably realize that you dont need comment system that much. Esspecially custom post types like products ...
0
votes
2answers
368 views

User-submitted reviews of different custom post types

How would one go about allowing reader-submitted reviews of different custom-post-types? For example, if I had a site with a custom-post-type Restaurant and custom-post-type Accommodation. The review ...
2
votes
2answers
906 views

Custom Post Type loops and Disqus

I've created a CPT for a site I'm working on at the moment called "campaigns". I've created a page which displays some content as well a custom loop which displays the most recent Campaign. ...
3
votes
2answers
611 views

Custom Comment Types

I have created a custom post type for a sort of gallery whereby users can upload work etc. In addition to this I have taxonomies for this type such as categories, tags, colors, etc. But I want users ...
3
votes
2answers
442 views

Seperating custom post type comments from regular blog posts comments

I have a custom post type (gs_index) with commments enabled, and would like to display a list of recent comments only from that particular post type (outside of the loop) I would also like to display ...