Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8133523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:37:54+00:00 2026-06-06T09:37:54+00:00

newbie here, so thanks in advance for help! I have a WordPress site with

  • 0

newbie here, so thanks in advance for help! I have a WordPress site with multiple taxonomies. I’d like to create a very simple form with two select boxes, one for each taxonomy. Then I’d like to use an HTML form with the get method to display posts matching the criteria they requested from the select boxes.

I’m able to do this easy enough if each of the two select boxes are filled out, I get a permalink something like:

testsite.com/?tax1=value1&tax2=value2

(ugly, I know, but it works).

What I can’t figure out is what to do if they don’t fill out both select boxes. Ideally it would only give the permalink for the one they fill in, so either:

testsite.com/?tax1=value1 or testsite.com/?tax2=value2

But instead I’m getting

testsite.com/?tax1=value1&tax2=Select+tax

here is my HTML

<form action="http://www.testsite.com/" method="get">
Season: <select name="season">
<option>Select season</option>
<option value="">Select season</option>
<option value="spring">Spring</option>
<option value="summer">Summer</option>
<option value="fall">Fall</option>
</select><br/>
Vacation type: <select name="vacations">
<option value="">Select vacation type</option>
<option value="beach">Beach</option>
<option value="ski">Ski</option>
</select><br/>
<input type="submit" />
</form> 

I realize the answer is probably simple but I’m banging my head against a wall so any help is very very much appreciated. Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:37:57+00:00Added an answer on June 6, 2026 at 9:37 am

    You can still pass an empty parameter like

    testsite.com/?tax1=&tax2=whatever_was_selected

    or

    testsite.com/?tax1=whatever_was_selected&tax2=

    but, you would have to preselect one of the options for them like

    <option selected="selected" value="">Select vacation type</option>
    

    This way if the form is submitted and the user didn’t change their selection it should still pass the parameter of but without a value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ASP.NET newbie here. I would like to create a form with multiple types of
newbie in ipad apps here n stucked on a very strange condition. I have
Am Newbie here.Am Beginner in php.I Create a sample Reg form.Here i want to
Newbie here! My problem is as follows: I have a dynamically populating ul where
CSS newbie here. Strange thing is happening, I have gaps between links, and I
jQuery-newbie here. I want to do a simple horizontal scroll function with two buttons.
Im newbie here.I have a problem with codeigniter segment() method.I referred 6th segment of
Rails newbie here struggling with a small project. I am creating a simple ship
Newbie here. I have this code: while (v < 360) { v +=10; RunIt();
A rails newbie here I have 2 actions in my controller 1) index 2)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.