Open dbareis opened 1 year ago
Can you clarify what you mean by manually creating them? Do you mean Comments as in the Comments added to Posts?
If a Post type does not have support for comments, but you insert comments into the DB through the Pods API, through wp_insert_comment()
, or through manual DB inserts -- then WP will just allow that comment to be added. Turning off support for comments just disables the form on the front of the site.
@sc0ttkclark
By manually I mean "Add Plant" and manually enter details etc vs creation via PHP.
And yes, comments capability added to posts. I don't touch comments in any way. It seems it is not the "type" of object that supports or doesn't support something but each individual object of that type (and it is only applied at creation time). After turning off comments, the comment stuff remains with "0" existing comments.
I have created this issue as requested.
Hi @dbareis
Since you mention you are using an import tool it sounds like it doesn't include the comment_status
param.
Depending on how you import posts it won't fetch the default values so you will have to provide them. Normally WP will provide these through the interface by using the supports option of a post type but when importing this step is skipped.
If it matters, I am not using an import tool. I have used PODS apis to create objects.
Is there are way to update these settings (comments, revisions) after the fact. For the moment I'm hiding the comments with CSS but for perfomance would like to get rid of them :-)
Description
My POD doesn't support comments. From what I can see if I manually create them then they won't allow comments, if I import them (use save()) then they do.
This looks like a bug given I'm using PODS functions to create the POD. Either way, how can I fix these faulty pods?
Version
2.9.11.1
Testing Instructions
No response
Screenshots / Screencast
No response
Possible Workaround
No response
Site Health Information
Pods Package