or u can switch to dropdown.. and allows more options ..sort by oldest .. sort by published last week.. last 7 days... last 30 days..
dont forget to complete osc_list_orders function form include/helpers hsearch with those options before u use it
__('new first') => array('sOrder' => 'dt_pub_date', 'iOrderType' => 'desc')
,__('old first') => array('sOrder' => 'dt_pub_date', 'iOrderType' => 'asc')
and looks like this. into search_list.php
<p class="filters">
<?php _e('Sort by', 'modern'); ?>:
<?php
osc_list_orders_drop();?>
</p>
function osc_list_orders_drop() {
$orders = osc_list_orders();
echo '<select name="order" id="order" ONCHANGE="location = this.options[this.selectedIndex].value;">';
foreach($orders as $label => $params){
$orderType = ($params['iOrderType'] == 'asc') ? '0' : '1';
echo '<option value="'.osc_update_search_url($params).'">';
echo $label;
echo'</option>';
}
echo'</select>';
}
this one has a bug
did not retain the value as y espected.. on change.. but.. hope that php masters.. solve this little
its a little late .. the midlle of the night ...ill take my time anytime soon to finish this.