• HI,

    we are using this plugin for a while now, andt it works very good ?? I have however a question : our client would like to see the projects ordered by status or by percentage completed.
    Any ideas, hints?
    thanks !

Viewing 5 replies - 1 through 5 (of 5 total)
  • razman

    (@razman-wan-fatul)

    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.

    Thread Starter waltervds

    (@waltervds)

    Thanks, this helps me on my way! Sort on “date published” might work with “post_id” ?

    razman

    (@razman-wan-fatul)

    @waltervds yes, it might. Share with us if you managed to sort by Raised Percentage.

    Thread Starter waltervds

    (@waltervds)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sort on project page’ is closed to new replies.