Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

jaro

szszbvk – jaro

// WP_Query arguments
$args = array(
	'post_type'              => array( 'jaro' ),
	'post_status'            => array( 'publish' ),
	's'                      => 'kulcsszo',
	'nopaging'               => true,
	'posts_per_page'         => '-1',
	'order'                  => 'ASC',
	'orderby'                => 'title',
);

// The Query
$wp_query = new WP_Query( $args );

// The Loop
if ( $wp_query->have_posts() ) {
	while ( $wp_query->have_posts() ) {
		$wp_query->the_post();
		// do something
	}
} else {
	// no posts found
}

// Restore original Post Data
wp_reset_postdata();