This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Cursorial

Description

With this plugin you can create your own loops
and manage them with a simple drag-and-drop interface.

Register one or more loops in your theme’s function.php and then use them as any other loop in your theme with have_posts(), the_post()
etc. Editors can then manage these loops in the administration by simply drag posts to these loops or between them and override the posts’ content if they like. They’ll find posts in a search box just next to the loops.

The loops can be configured to …

  • allow just a limited number of posts,
  • allow just a specified set of post types,
  • to have posts with children (like nested loops, related content etc),
  • make posts’ content overrideable and optional,
  • be set together in the administration,
  • and use images fetched from content or the featured image.

This plugin also comes with a widget that …

  • displays a registered loop
  • or creates one for you.

No additional database tables or writeable directories are added

This plugin will simply register a hidden custom post type and a custom taxonomy. It’s therefore installable/runnable on most kinds of web hosts/environments.

More info, wiki and issue tracker

https://github.com/klandestino/cursorial

Screenshots

  • An overview of the administration.

FAQ

In what languages are this plugin available?

  • English (built-in)
  • Svenska

Can I override the widget output template?

Yep. Create a template in your theme and call it cursorial-widget.php. The loop in the template file is already initiated. You’ll just need to do the while loop like so …

<ul>     <?php     # In cursorial-widget.php     while ( have_posts() ) : the_post(); ?>         <li>             <h4><a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>"><?php the_title(); ?></a></h4>         </li>     <?php endwhile; ?> </ul> 

Can I override the administration templates?

Yes you can.

Create a template in you theme and call it cursorial-admin-blocks.php
or cursorial-admin-blocks-BLOCK-ADMIN-NAME.php. The BLOCK-ADMIN-NAME should be replaced by the key for the specified group of blocks in the admin array in register_cursorial().

The administration functionality is mainly done with some jQuery-plugins. See ´templates/cursorial-admin-block.php´ in the plugin directory to see how the jQuery plugins are applied.

Changelog

v1.1

Bugfixes

  • Fixed issue with siblings being removed when removing childs.
  • Even more content override that might solve some unwanted override savings.
  • Fixed a javascript error that occured in some cases.

New features

  • Added widget that displays existing blocks or creates new ones.
  • Widget have overridable widget templates for both public use and the admin.
  • Support for blocks to limit posts by post-type.

v1.0.1

Bugfixes

  • Fixed issue with hidden image selector.
  • Posts’ order failed in chrome and maybe some other browsers.
  • Fixed issue with using the “Insert into Post”-button in image selector.

New features

  • Search queries looks for all post types except cursorials. Thereby you can add pages and custom post types to your cursorial loops.

v1.0

Bugfixes

  • Deleting posts with childs must also remove childs.
  • Image won’t change until the block is saved.
  • You can’t choosa an image override if there’s no cursurial representative.
  • Search seems to get all posts even if they don’t match.
  • Templates are located but not loaded.
  • Default generated excerpt was saved as overrides even if there was no difference from the original.

New features

  • Search posts by date.
  • First occuring block is used as default if no block is specified in get_cursorial_block() and query_cursorial_posts().
  • Search result is limited.

v0.9.3

  • Administration interface have a saved/unsaved status indicator.
  • There’s a save all blocks button.
  • The jQuery block plugin have some of it’s internal functions available from outside.
  • Swedish translation.

v0.9.2

  • An optional show/hide option on fields.

v0.9.1

  • Maximum number of posts can be set for both blocks and post childs.

v0.9

First stable beta release with some of the main features.

  • Register blocks with custom loops and gather them in the administration.
  • Search posts in the administration and drag posts into cursorial blocks.
  • Drag posts between blocks.
  • Override posts’ contents.
  • Images will be set by wordpress’ own image library.
  • Posts can be set to have childs.
  • Admin pages templates are overridable.
  • Loops for displaying block posts are available through both a query method and a template fetcher.

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Browse the code