I cannot enter the letter C in the form [closed]

Most likely you have some functionality to block the C character. If you disable JavaScript and disable the loading indicator, you can use the character. There is a lot of discussion online on the merit of these kinds of tools (trying to stop copying). As you’ve seen now: it worsens other functionality while giving little … Read more

Filter/Sort Post Form On Taxonomy page

That happens because wp_dropdown_categories, by default, defines the name of the dropdowns as ‘cat’. You are showing 2 dropdowns in the form, and both are named ‘cat’, because you didn’t define a name for them. So when you submit the form, you get two query vars named cat. For example, if you want the second … Read more

Custom form validation

Yes, you’d use a JSON response containing an error property. <?php echo json_encode( [ ‘error’ => [ ‘code’ => ‘my_error_code’, ‘message’ => ‘My error message.’, ‘data’ => [any additional data you need], ], ] ); Your AJAX callback should look for the error and adapt accordingly. For the regular POST, you’d want to generate HTML … Read more