
To fetch the latest articles or comments randomly for news ticker benaceur plugin place the following code in the functions.php file of the activated theme:
لجلب أحدث المقالات أو التعليقات بشكل عشوائي لإضافة news ticker benaceur، ضع الكود التالي في ملف functions.php الخاص بالقالب المُفعّل:
add_filter( 'ntb_filter_arguments_recent_posts', function( $args ) {
$args['orderby'] = 'rand';
return $args;
});However, to display the latest articles or comments randomly each time the page loads, the caching option for this plugin must be disabled “Temporarily store of data”.
لكن لظهور آخر المقالات أو التعليقات عشوائيا كلما تم تحميل الصفحة, يجب تعطيل خيار الكاش الخاص بهذه الإضافة “التخزين المؤقت للبيانات”
requires news ticker benaceur 3.5+
