getting the values of hidden inputs to use them in a php mysql query

Please add method=”post” to form like <form id=”form1″ method=”post”> <?php foreach($results as $key): ?> <?php echo $key->ID.$key->display_name.$key->mg_nobility; ?> <!– Append the id to the end of this –> <input type=”text” id=’edit-value-<?php echo $key->ID ?>’ value=”” /> <!– Use the data attr instead –> <button data-rowid='<?php echo $key->ID ?>’ class=”edit_nov”>Submit</button><br> <?php endforeach ?> <input type=”hidden” name=”del_id” … Read more

WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category

I’m going to take the answer you posted for yourself and suggest a couple of improvements. Some things I’ll address: The 3rd query is unnecessary. There are simpler ways to sort by date. Just make both queries for the full post content and merge the results. Since we’re not going to be using have_posts() and … Read more