[Plugin: Posts 2 Posts] Looping the loop without WP_Query?
-
Hey there,
I’m using Posts 2 Posts and the Zoninator plugin (to edit content “zones” on my theme).
Zoninator works with sort of a custom query (similar to get_posts(), if I understand it correctly):
$zone_posts = z_get_posts_in_zone( 'homepage', array( 'numberposts' => 1, 'post_type' => 'any' ), false ); foreach( $zone_posts as $post ) { setup_postdata($post); get_template_part( 'content', get_post_format() ); }
This returns the posts I have assigned to the ‘homepage’ zone.
Since there’s no WP_Query going on, is it possible to get the connected posts using Posts 2 Posts?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘[Plugin: Posts 2 Posts] Looping the loop without WP_Query?’ is closed to new replies.