*

siken

  • ****
  • 138 posts
results with more than 1 year old?
« on: August 18, 2018, 11:01:04 AM »

Hello, I've put this line to sort the publications by older or newer ones:

Code: [Select]
<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>&nbsp;<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>&nbsp;&nbsp;<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?

*

MB Themes

Re: results with more than 1 year old?
« Reply #1 on: August 25, 2018, 01:30:02 PM »
@alexandromt
You must apply new filters to search engine, you can find few existing in functions.php of theme.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

siken

  • ****
  • 138 posts
Re: results with more than 1 year old?
« Reply #2 on: November 29, 2018, 09:33:10 AM »
I was looking for a link that by clicking will only show the publications that have been published for a year.