The name attribute for the select is “r_sortby”.
Replace
$sort= $_GET['sort'];
with
$sort = isset( $_GET['r_sortby'] ) ? $_GET['r_sortby'] : 'date';
Related Posts:
- Get data from dropdown and update page
- Add options to WordPress Blocks form dropdown field
- How to handle form submission?
- Add error message on password protected page
- how to set from address according to the form input email address for wp_mail()?
- using update_user_meta in form to set and get custom meta
- User registration problem in WordPress
- show image in mail contact form 7 [closed]
- Submitting post to database then redirecting to paypal
- Saving two categories from two dropdowns in front end posting form
- Registration form labels – add asterisk
- How to create and retrieve data from a special registration form?
- Contact form 7 Dynamic text – placeholder on GET field
- Settings API erases itself?
- How to send multipart form data to WordPress endpoint
- Wp_mail Returning False on Server
- How to update selective options on plugin settings page
- How to get a list of taxonomy terms which are being used only within certain post types?
- Help with verifying google recaptcha in a custom form
- Duplicating/Cloning Multiple Form Fields
- Getting the dropdown menu to redirect to different pages?
- Gravity list field override and adding javascript [closed]
- Mail Form in a modal box without plugin
- How am I able to get the value out of cookie array when I push a button?
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- What is the valid phone number format accepted by contact-form-7 [closed]
- How to implement post/redirect/get pattern on contact form
- Creating a custom multilingual form
- wordpress not displaying my form
- not logged in users can’t submit form
- How to convert custom post type based list to a dropdown list?
- post request does not redirect but why
- How can I create registration form for users which I can assign role and profile picture?
- Creating User Form Submission – Only allow them to see their own submissions
- Show the submitted values in the form when validation fails
- Using Contact Forms to Send Private Information [closed]
- Adding a new user from the front end
- Contact Form 7 not sending emails- no confirmation, no error [closed]
- Saving frontend form data in wordpress
- PHP form is not sending mail if I use mime type and version in header. How to solve this? [closed]
- Validating custom fields before post save
- Form action URL unrecognized
- Is there a WordPress form plugin that can easily be configured for Google Analytics goals?
- Comparing formidable pro and gravity forms [closed]
- How to validate my form
- Custom form handling in WP.. the correct way?
- How to selected value default in option list?
- Front end update_post_meta Help
- retrieve all emails as database in wordpress to view all sent emails
- How to stop direct HTTP POST to a PHP script?
- Unable to upload data to Media Libary
- Dashboard Contact Form
- How can I receive uploaded attach file as a Google drive link [closed]
- Exporting a form to a CSV file does not work in WordPress but it does in PHP
- Form Post / Session Variables not Working in Query with Pagination
- Am receiving more than thousand mails in single day from ‘[email protected]’ continuously
- Sliding Register – Login Forms
- AMP and Paypal form CORS issue
- Caldera Forms Manual formula
- Form element name – array type is not working
- Embedding Links to WPForms on a WP Page
- Unexpected token admin.php
- display a message if get form is empty
- Scroll Form with page scrolling and add form on slider
- Reading POST over admin-ajax.php
- Back button not working after input / search submit
- I am trying to add checkbox for anonymous post on form post
- Adding a different domain to existing WordPress site
- Auto Submit Contact Form 7
- Complex List Field – Gravity Forms
- Custom transactional emails on user signup with wp_add_user
- WordPress, Front-end send message to authors using plugin when their post is published
- why form in front-page.php redirect to blog page
- Sending email via function in page or setting up the action properly in another page
- Multiple Taxonomy post query with exclusion
- How do i can data from my custom form to a custom table
- Form Sanitization and Validation
- Custom dropdown search form that allows users to select option B based from Option 1
- Custom forms + Polylang
- What is the proper way to embed the HTML of an external form such as payflowlink from paypal?
- How to make caption field required in media library?
- Update a string from the front-end
- Update post meta without deleting the old entries
- How to creat form with get method and receive it
- Username from e-mail
- Send message to author without showing email address [duplicate]
- Calling Custom Taxonomy Dropdown in Form
- Custom form values without plugin [closed]
- custom form submission
- Using form method in a template WordPress page
- Reset form on onclick function
- From contact form to paypal
- Contact form with dynamic dropdown and filter
- WordPress shortcode select option not working [closed]
- how to show selected options drop down menu values in attributes field in after saving post.php
- Dynamic price for payment button
- Forms lead to “Page not found” in Ultimate Member plugin
- How to use tag in wordpress?
- How can I add email code authentication on form submission without any wp plugin?
- Implementing Autosave Functionality for Long, Multi-page Forms in WordPress