Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    The same function alx_related_posts still exist within the hueman theme and remains pluggable. Your custom code in your child theme should work.

    If not, you can look at hueman/functions/init-front.php line 587 and use the function hu_related_posts

    Thank you.

    Thread Starter bebibu

    (@bebibu)

    Err i dont know how to do it.

    Just copying code to my function.php in child theme but didnt work

    // Define shared post arguments
    $args = array(
    	'date_query' => array(
    		array(
    			'column' => 'post_date_gmt',
    			'after' => '2 months ago',
    			),
    		),
    	'no_found_rows'			=> true,
    	'update_post_meta_cache'	=> false,
    	'update_post_term_cache'	=> false,
    	'ignore_sticky_posts'		=> 1,
    	'orderby'			=> 'rand',
    	'post__not_in'			=> array($post->ID),
    	'posts_per_page'		=> 3
    );

    @bebibu – did you get this resolved?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to limit related posts to a certain time in Hueman 3.0.7?’ is closed to new replies.