The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Let user sort posts...
 
Share:
Notifications
Clear all

Question Let user sort posts based on rating

3 Posts
2 Users
0 Reactions
126 Views
Posts: 1
 Ping
Topic starter
(@ping)
New Member
Joined: 2 months ago

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
Asti
Posts: 7473
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

I'll ask the developers and get back to you soon. 

Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7473

We're really sorry, but there is not an easy solution we can post here. 

Currently, we have paid plugin customization and custom addon development services at the gVectors Team. They can assess the work and create it for you. Just contact us via sales[at]gvectors.com email address and send a list of requirements you'd like to have.

Reply
Share: