Related post Category and Date restriction
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Related post Category and Date restriction’ is closed to new replies.