What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-13 19:10:03
keep incrimenting post offset in a custom query
<?php // the query $the_query = new WP_Query( $args ); ?> <?php if ( $the_query->have_posts() ) : ?> <!-- pagination here --> <!-- the loop --> &n... Add solution -
Other 2022-02-02 21:01:34
acf creating-a-front-end-form/
<?php acf_form_head(); ?> <?php get_header(); ?> <div id="primary"> <div id="content" role="main"> <?php /* The loop */ ?> <?php while ( have_posts() ) : the_post(); ?> ... Add solution -
PHP 2022-01-28 00:35:49
wordpress php query randomise
//Create WordPress Query with 'orderby' set to 'rand' (Random) $the_query = new WP_Query( array ( 'orderby' => 'rand', 'posts_per_page' => '1' ) ); // output the random post while ( $the_query->have_posts() ) : $the_query->the_post(); echo... Add solution -
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
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5