How to have multiple instances of the same taxonomy in a search form

jpd527, Please remember that ‘tag’ is singular and not plural. Here your form has multiple HTML element with same id so this is wrong. Now if you require to search data with two different inputs, then you can merge it via JS. HTML code like: <form method=”get” id=”search form” action=”https://wordpress.stackexchange.com/”> <div> <input type=”text” value=”” name=”tag_one” … Read more

Custom form handling in WP.. the correct way?

“create a plugin” isn’t really a separate option, you’d still need to intercept requests somehow. I’ve used the init method, and it’s a viable option. Checking isset on a POST var before kicking off your processing logic is extremely fast, I doubt you could even reliably measure the impact in the sea of other things … Read more

Contact form submit, having to click twice

It sounds like a ‘classic rollover effect bug’ to me: if you trigger a visual effect on any link (or ‘button’) either with jQuery or JavaScript, users on touch devices may be forced to click twice: “iPad/iPhone hover problem causes the user to double click a link“ I suggest you either try to replace the … Read more

Duplicate “default” form with jQuery

I don’t know your html code, but here is how it will work. The idea is that you keep the original hidden elsewhere. HTML <button class=”add-form”>add form</button> <form id=”main-form”> <div class=”form-item row”> <input type=”text” name=”abc”> </div> </form> <div class=”stay-hidden original-form-item”> <input type=”text” name=”abc”> </div> CSS .stay-hidden { display:none; } JS // Add form jQuery(‘.add-form’).click(function() { … Read more

Direct form to a custom page template

A helpful clue would be to look at the URL in the address bar of your 404 page. A reliable approach for form action in WP looks like the snippet below. <form method=”post” id=”thisform” action=”<?php bloginfo(‘url’); >/dbsearch/”> I would create your page in WP, ensure the page slug is ‘dbsearch’ as this determines your permalink … Read more