How to make a meta box?

Imho, the fastest way would be by using the Meta Box Wrapper Class, which is a plugin by now. Download and activate it. Next in your functions.php add the following: $prefix = ‘cheas_cool_metabox_’; global $meta_boxes; $meta_boxes = array(); $meta_boxes[] = array( ‘id’ => ‘movie_reviews’, ‘title’ => ‘Movie Review’, //Change the next line if you want … Read more

WP_Query parameter conflict

Is your post type non-hierarchical like a post – or hierarchical like a page? It will determine which slug parameter you should be using in WP_Query: name (string) – non-hierarchical (post) slug. pagename (string) – hierarchical (page) slug. Also, the tax_query should have the operator parameter. Possible values are ‘IN’, ‘NOT IN’, ‘AND’. You should … Read more

How to Make infinite loop of post

A very basic example, $args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => -1 ); $query= new WP_Query($args); while ( $query->have_posts() ) : $query->the_post(); the_content(); //example, use whatever template functions you like… endwhile; wp_reset_postdata(); //reset Post Data wp_reset_query(); //destroy query incase of using multiple queries on same page Important: Note, that this is probably an inefficient … Read more