I want my pages to not have comments enabled by default, only my posts. Is this possible?
|
The Front-End Solution:Trick your templatesYou could fake that comments are open for specific post types. The following code works for all templates, that wrap the comment form (or whatever comment related code/UI elements) inside a conditional The little magic… wrapped up in a quick'n'small plugin.
How to use itJust upload and enable the plugin in the administration. Now every time the template questions for something like…
…the |
||||
|
|
The Back-End Solution:Javascript to set the default to uncheckedWhen you got the "Discussion" Meta Box open, then both checkboxes (Comments & Pingbacks) will be set to the value from…
A plugin to change the defaultsAs we can't simply set different values for different post types, we can rely on javascript (which won't work, if JS is turned off - for example in a screen reader). Now the meta box offers a hook, where we can add this little javascript snippets.
|
||||
|
You probably just need to show the widget for Discussion.
1 go to Edit a Page and [edit ... i was going to show another image here ... but suddenly the upload failed] |
|||
|
|
