function wpb_rand_posts() { $args = array( 'post_type' => 'post', 'orderby' => 'rand', 'posts_per_page' => 5, ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) { $string .= ''; /* Restore original Post Data */ wp_reset_postdata(); } else { $string .= 'no posts found'; } return $string; } add_shortcode('wpb-random-posts','wpb_rand_posts'); add_filter('widget_text', 'do_shortcode');

Privacy Policy

Who we are

Our website address is: https://everythingthathappened.com.



What personal data we collect and why we collect it

– You don’t give us any so we don’t collect any. Even if we did, we wouldn’t sell it to the Russians or anyone else.



Comments

– Comments are not enabled. If you see me in the supermarket or such, I’ll be glad to listen.



Comments

– As far as I know, there are none, although WordPress itself might keep a few.

© 2019-2024 Pushbutton Technologies