Hi albetaqa
Can you post a link to a page where this is happening?
Try it with this in your (child) theme’s functions.php file:
add_filter( 'related_posts_by_taxonomy_widget_args', 'random_widget_filter', 10, 2 );
function random_widget_filter( $args, $instance ) {
$args['order'] = 'RAND';
return $args;
}
btw:
consider creating a child theme instead of editing your theme directly – if you upgrade the theme all your modifications will be lost. Or create a plugin with the code above.
i tried it
but the same results
related posts sorts by date
http://www.upgulf.com/up-jpg/dn460540.jpg
iam sorry 4 that
🙁
It doesn’t seem your theme’s functions.php file is used. Can you remove the code from your functions.php.
See if it works by creating a plugin with this plugin. Use the same code as the code you removed from your functions.php file.
It’s important to remove the code from functions.php first.