Este plugin no ha sido probado con ninguna las 3 últimas versiones principales de WordPress. Puede que ya no se mantenga o no tenga soporte, y puede que tenga problemas de compatibilidad cuando se utiliza con versiones más recientes de WordPress.

Network-wide posts

Descripción

This is a multisite plugin.

The plugin creates a network-wide tag in all post_tag taxonomy of each site.

Tagged posts are made available for a theme developer to display on the home site.

Furthermore, the home site admin dashboard has a new submenu Posts->Network Wide (the name of your network-wide tag) which allows the admin to manually order the network-wide posts with a drag and drop interface.

This plugin was originally designed for a client site. The site is a multi-resort group of hotels. Each hotel has special offers through the season. Each special offer is promoted on the home site. Special offers need to be pushed up to the top of the page at various moments during the season. This plugin allows them to do so.

The plugin is compatible with the excellent PolyLang multi-language plugin.

Main Features of this plugin

  • Allows multi-site child-blog posts authors to tag their articles as network-wide
  • These child-blog posts can be manually ordered in the main blog
  • It is fully compatible with the PolyLang multi-language plugin

Capturas de pantalla

Instalación

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Navigate to your main blog admin Dashboard, and set your network-wide taxonomy in the options page Settings->Network Wide Post.
  4. You can also set aliases for your child blogs to facilitate network-wide posts manual ordering process.
  5. To order your posts, navigate to the Dashboard Posts->Network Wide submenu page.
  6. If you have multiple languages, each language posts will appear under a separate tab.

FAQ

How do I display the network-wide post in a page?

The functionality is exposed through a single function get_network_wide_posts(),
which returns an array of posts with a limited number of meta-fields, which are,

  • post_id the id of the post
  • post_title the title of the post
  • post_excerpt the excerpt of the post
  • post_url the permalink of the post
  • thumb_url the thumbnail image URL of the post
  • blog_id the id of the blog to which this post belongs to

Here is the example of how to use it in a page template

$nwposts = array();
if(function_exists('get_network_wide_posts')){
  $nwposts = get_network_wide_posts();
  foreach($nwposts as $post){
    ?>
<article id="post-<?php echo $post['post_id']; ?>" >
  <a class="post-thumbnail" href="<?php echo $post['post_url'];?>" >
        <img src="<?php echo $post['thumb_url'];?>" class="attachment-post-thumbnail" alt="<?php echo $post['post_title'];?>">
  </a>
    <header class="entry-header">
        <h1><?php echo $post['post_title'];?></h1>
    </header><!-- .entry-header -->
    <div class="entry-content">
        <?php echo $post['post_excerpt'];?>
    </div><!-- .entry-content -->
  </article><!-- #post-## -->
<?php
  }
}
?>

Reseñas

No hay reseñas para este plugin.

Colaboradores & Desarrolladores

“Network-wide posts” es software de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

Traduce “Network-wide posts” a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN, o suscríbete al registro de desarrollo por RSS .

Historial de cambios

1.1.1

  • bug fix in public class SQL query

1.1

  • Fixed a bug which prevented the posts to be loaded when no feature image was set

1.0

  • Initial launch of the plugin with PolyLang compatibility