'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', 'techdev'); } return $string; } function techdev_scripts() { wp_enqueue_style( 'techdev-style', get_stylesheet_uri() ); wp_enqueue_style( 'techdev-bulma', get_template_directory_uri() . '/css/bulma.css' ); wp_enqueue_style( 'techdev-font1', "https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" ); wp_enqueue_style( 'techdev-font2', "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" ); wp_enqueue_script( 'jquery'); }