What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-21 19:54:22
wp loop custom post type
<?php $loop = new WP_Query( array( 'post_type' => 'yourposttypehere' // This is the name of your post type - change this as required, &... Add solution -
Other 2021-11-05 14:59:15
display a list of WordPress custom posts
<?php $loop = new WP_Query( array( 'post_type' => 'article', 'posts_per_page' => 10 ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php the_title( '<h2 class="entry-title"><a href=&... Add solution -
Other 2021-09-04 07:24:03
custom post type query loop wordpress
<?php $loop = new WP_Query( array( 'post_type' => 'yourposttypehere' // This is the name of your post type - change this as required, &... Add solution -
Other 2021-08-31 20:27:02
custom post type
<?php $args = array( 'post_type' => 'product', 'posts_per_page' => 10, ); $loop = new WP_Query($args); while ( $loop->have_posts() ) { $loop-... Add solution