Plugin Directory


Allow users to set custom post loops for different positions of the theme in a widget-like admin interface.


Register the positions in your functions.php:

wp_diagram_register_positions( array(
        'id' => 'slideshow',  // Only chars and underscores here
        'name' => 'Slideshow' // Any textual name
        'id' => 'featured_news',
        'name' => 'Featured News'
) );

Go to the Positioning menu in the admin interface and schedule the posts. 1. Click in Add New Scheduling and select a date. The posts you will schedule will be displayed only from this date and on. 2. Search the posts you want to add to this scheduling. 3. If desired, change the order by dragging and dropping the posts. You can also change the post title and excerpt for this scheduling.

Then, in your templates just use wp_diagram_get_query( 'position_id' ) to call the scheduled posts:

<?php $slideshow = wp_diagram_get_query( 'slideshow' ); ?>
<?php if ( $slideshow->have_posts() ) : ?>
    <?php while( $slideshow->have_posts() ) : $slideshow->the_post(); ?>

        <?php // Post loop like any other ?>

    <?php endwhile; ?>
<?php endif; ?>

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-7-25
Active Installs: Less than 10


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.