Hello, I've put this line to sort the publications by older or newer ones:
<div class="sort-it">
<div class="sort-title">
<div class="title-keep">
<?php $orders = osc_list_orders(); ?>
<?php $current_order = osc_search_order(); ?>
<?php foreach($orders as $label => $params) { ?>
<?php $orderType = ($params['iOrderType'] == 'asc') ? '0' : '1'; ?>
<?php if(osc_search_order() == $params['sOrder'] && osc_search_order_type() == $orderType) { ?>
<?php if($current_order == 'dt_pub_date') { ?>
<?php } else { ?>
<?php if($orderType == 0) { ?>
<i class="fa fa-sort-numeric-asc"></i>
<?php } else { ?>
<i class="fa fa-sort-numeric-desc"></i>
<?php } ?>
<?php } ?>
<?php } else { ?>
<?php } ?>
<?php } ?>
</div>
<div id="sort-wrap">
<div class="sort-content">
<?php $i = 0; ?>
<?php foreach($orders as $label => $params) { ?>
<?php $orderType = ($params['iOrderType'] == 'asc') ? '0' : '1'; ?>
<?php if(osc_search_order() == $params['sOrder'] && osc_search_order_type() == $orderType) { ?>
<a title="pulsar para ordenar las publicaciones por las más antiguas" style="margin-left:3px;color:#337AB7;width:bold;font-align:right;" href="<?php echo osc_update_search_url($params) ; ?>/sOrder,dt_pub_date/iOrderType,asc"><strong><span><i style="font-size:14px;" class="fa fa-sort-numeric-desc"></i> <b style="font-size:12px;"><u>antiguas 1º</u></b></span></strong></a>
<?php } else { ?>
<a title="pulsar para ordenar las publicaciones por las más nuevas" style="margin-left:5px;color:#337AB7;width:bold;font-align:right;" href="<?php echo osc_update_search_url($params) ; ?>"><strong><span><i style="font-size:14px;" class="fa fa-sort-numeric-asc"></i> <b style="font-size:12px;"><u>nuevas 1º</u></b></span></strong></a>
<?php } ?>
</div>
</div>
<?php $i++; ?>
<?php } ?>
</div>
</div>
How can I do it to show only the results with more than 1 year old?