I have a wordpress website. There is a category page with a form on it to sort / filter the posts.
I have tried using $_SERVER['PHP_SELF'] as the form action as i need to get the contents of the form to display the posts but when I do it redirects to the index page.
Is there a reason for this? Or a better way to submit a form within wordpress.
Thanks