Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
Aug 04, 2024 5:06 pm
Hello, I found this bit of code that makes a dropdown box, letting the users sort posts based on date or title. what I need is to let my users sort posts based on wpdiscuz ratings or date. what parameter should I add to the code instead of title? thanks!
<form action="" method="get">
<select name="sort" id="sorting">
<option value="title" <?php if ($sort == "title"){ echo 'selected="selected"'; } ?> >Sort by title</option>
<option value="date" <?php if ($sort == "date"){ echo 'selected="selected"'; }?> >Sort by publication date</option>
</select>
<input type="submit" value="Submit" /></form>
2 Replies
Aug 05, 2024 9:17 am
I'll ask the developers and get back to you soon.Â