Jump to content

[SOLVED] How to directly link to a specific category from a select form on another page?


Boost
 Share

Recommended Posts

Hey,

I have a single-page template featuring a straightforward HTML form with a select element, as shown below:

<form id="case-study_cat" action="/case-studies/" method="POST">
	<div class="uk-margin-bottom">
    	<select id="selected" class="uk-select" aria-label="Select" name="selected">
    		<option value="all" selected="">All</option>
          	<option value="financial-services">Financial Services</option>
        	<option value="insurance">Insurance</option>
          	<option value="telecom">Telecom</option>
          	<option value="e-commerce">E-commerce</option>
          	<option value="partner">Partner</option>
          	<option value="security">Security</option>
          	<option value="public-sector">Public Sector</option>
          	<option value="energy">Energy</option>
          	<option value="aviation">Aviation</option>
          	<option value="events">Events</option>
      	</select>
    </div>
</form>

Upon selecting an option, the template dynamically generates a list of posts based on the chosen category.

Now, on another page—let's say the homepage—I'd like to include a button that links directly to a category from that select form. This way, when users land on that page, they immediately see the list of posts within the chosen category. Does this plan make sense? Is there a method to accomplish this?

Cheers!

 

Link to comment
Share on other sites

  • Boost changed the title to [SOLVED] How to directly link to a specific category from a select form on another page?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...