Hi,
I managed to sort the projects by Fund Raised by modifying the core plugin file, in case you are interested.
In wp-crowdfunding/shortcode/Project_Listing.php,
change this code at line 41:
'posts_per_page' => $a['number'],
'paged' => $paged,
'orderby' => 'post_title',
'order' => $a['order'],
to
'meta_key' => 'total_sales', // sort by sales
'posts_per_page' => $a['number'],
'paged' => $paged,
'orderby' => 'meta_value_num', // sort by sales
'order' => $a['order'],
But the code above sort the projects by Fund Raised, not Status or Percentage Completed. I’m interested to know how to achieve this, and am waiting for the reply from plugin dev. I’ve been hoping and waiting they would include the option to sort projects by Date Published, Fund Raised and Raised Percentage since a year ago.
Thanks, this helps me on my way! Sort on “date published” might work with “post_id” ?
@waltervds yes, it might. Share with us if you managed to sort by Raised Percentage.
Ordering by creation date is indeed replacing ‘post_title’ by ‘post_id’
to be continued π
Hi @waltervds and @razman-wan-fatul,
I apologize for the delay and not bringing the sorting by Date Published, Fund Raised and Raised Percentage yet.
It is for sure that we have noted this feature as @razman-wan-fatul said. But our development team is over-occupied with some other important tasks. Also, we are trying to resolve the bugs as much as possible.
But out of nowhere Corona Pandemic came in the scenario. Now we are working from home to save ourselves from the pandemic and also trying to provide support and release updates as much as we can.
I set this feature highest priority. I hope we will able to bring within the upcoming one or two updates. We appreciate your patient and cooperation.
Regards