Support » Plugin: Zone Manager (Zoninator) » "Then use the handy API functions…" Such as?

  • I love the idea behind this, but for the life of me cannot figure out how to use it. Call me a complete rookie, but I could really use a little guidance.

    I see the widgets, but that just puts them on the sidebar or footer. And every single page mentioning Zoninator merely parrots the same phrase, “Then use the handy API functions to retrieve and display your content.”

    I can create zones. That’s easy.
    I can park zones in widgets. That’s easy, too.

    What are these “handy API functions,” where do I find them, and how do I use Zoninator to curate specific content on my home page?


    EDIT: I suspect this has to do with the code on the “Usage Notes” tab on the plugin page, but am not sure. Any clarification would be appreciated.

Viewing 1 replies (of 1 total)
  • Brandon Holcombe


    Try the following on a page template. You can remove the comments. Just place the code starting with ‘<?php $posts = z_get_posts_in_zone….’

    <?php /* Loop Zone Stories - Zone slug is usually prefixed with "zone-" - Ex: Slug of zone name of Home will be:  zone-home  */ ?>
    <?php $posts = z_get_posts_in_zone( 'zone-name-slug-here', array( 'numberposts' => 1, 'post_type' => 'any', 'post_status'=>'publish' ), false ); ?>
                <?php foreach( $posts as $post ) : ?>
                    <div class="features">
                    	<?php the_post_thumbnail(); ?>
                    	<h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
    					<?php the_excerpt() ?>
    			<?php endforeach;
Viewing 1 replies (of 1 total)
  • The topic ‘"Then use the handy API functions…" Such as?’ is closed to new replies.