• Resolved Guillermo

    (@guillermo77)


    Dears, is possible restrict by date some categories or just one, and the rest categories left run.

    I need add the categorie restriction to the date.
    For example, category news and 6 months.

    <p>function jetpackme_related_posts_past_halfyear_only( $date_range ) { $date_range = array( 'from' => strtotime( '-6 months' ), 'to' => time(), ); return $date_range; } add_filter( 'jetpack_relatedposts_filter_date_range', 'jetpackme_related_posts_past_halfyear_only' );</p>

Viewing 1 replies (of 1 total)
  • Plugin Contributor James Huff

    (@macmanx)

    At the moment, the filters can’t be combined that specifically. You can filter by category and date, but not by specific dates for specific categories.

Viewing 1 replies (of 1 total)
  • The topic ‘Related post Category and Date restriction’ is closed to new replies.