CPT Loop Query; Showing when minimum of 2 and without current?
-
Hi all,
Currently I am working on a certain CPT, which lists other cpt’s when related by a certain id. But I would love to only show this when there is at least 1 other cpt with thesame ID. Also, I’d like to remove the current cpt from the list. Who can help me out here?
This is what I could find so far:
<?php $args = array( 'orderby' => 'title', 'post_type' => 'cats', 'meta_key' => 'uniquekey', 'meta_value' => $uniquekey ); $the_query = new WP_Query( $args ); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘CPT Loop Query; Showing when minimum of 2 and without current?’ is closed to new replies.