• I am working on a video blog. On the front page I have a sort by option. You can try the option at the following link

    https://cricketclips.net/

    Can’t figure out how to make the shortest and longest video option to work. In db I have custom field named “complete” with value in decimals (i.e 4.23,0.26,1.28 etc Where 4.23= 4 minute and 23 sec.)

    For shortest video; I want to display the videos in ascending order with respect to the decimal values mentioned above.

    And for longest video: want to display the videos in descending.

    Any help in this regard will be appreciated.

  • The topic ‘How to filter post using custom feild value in shortest and longest duration?’ is closed to new replies.