I am using WordPress to create a recruitment site with subscription. This is what I did. Added a meta value for user role 'rec' which is a date of ending of subscription.
All worked fine.
But when recruiter searches from the form it ads ?as=something as the query string.
I want my url structure to be like this
/recruitment/?uid=4&as=it
uid is the User ID of a recruiter, it is being used to get the meta of date from user's data to find out if user can see this page or not. ?as=something is search string.
Right now whatever I add in the action of form when a user searches the url becomes
/recruitment/?as=it
What I did was I added the code like this in search form.
<form method="get" id="sul-searchform" action="<?php the_permalink() ?>&uid=<?php echo $my_uid;?>" class="wg_search">
Any help would be appreciated.