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');

Pep talk

Woman Holding a Fruit, Paul Gauguin

In the tiled passageways connecting New York City subway lines are colorful posters advertising businesses and products. One endorses The New School, a progressive university in Manhattan with a goal of supporting continuing education. Above a lush Gauguin painting, it counsels “IT’S NOT TOO LATE”, and reminds  commuters that “At 35, Paul Gauguin was a stockbroker.” In the margin, someone has written “At 35, Mozart was dead.”

© 2019-2024 Pushbutton Technologies