Tag Info

Hot answers tagged

2

I agree with you, it's somewhat an unexpected user experience, when you're redirected after updating a term. Additionally there seems to be no error handling on the form itself, if you try to make some errors, like deleting the term name and slug, it will not show any errors, just ignore your changes and redirect. You can try the following to stay on the ...


1

It is no only name or email problem, as Tom wrote. I had problem even with input field with name attribute same as one of my Custom Post Types. For example: ... <input type="text" name="movie"> ... And when having registered CPT "movie" somewhere else, your form submitting will end with 404 error. Conclusion: Don't use name, email and any ...


1

The comments_open() function is used, both by core and typically themes to determine status for specific post. It has filter of same name for result, which you can use to manipulate it individually for the post. comment_form() won't actually output form if check is false and fire comment_form_comments_closed action in such case. Native WP themes, shipped ...


1

Here are two solutions that can be placed in functions.php. They are not really what I need, but perhaps they are of some use to someone else. Solution 1 Can be used to close comments for certain posts: function close_comment_form( $open, $post_id ) { $post = get_post( $post_id ); if( $post->post_type == 'post' ) { return false; } ...



Only top voted, non community-wiki answers of a minimum length are eligible