Giter Site home page Giter Site logo

shelob9 / jp-multisite-list Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 134 KB

WordPress plugin that creates lists of things in a multisite network, like blogs, posts, pages etc. Uses transient cache to speed up list display.

Home Page: http://JoshPress.net

PHP 100.00%

jp-multisite-list's Introduction

jp-multisite-list

Adds the ability to load all post or all pages from all network sites. Uses transient cache to save results in order to avoid having to recalculate on each page load, which could be a very resource intensive process on a large site.

This plugin is under development. See known limitations/issues below before using.

Use

  • List Posts In your theme use:

<?php if ( function_exists( 'jp_msl_posts') : jp_msl_posts(); endif; ?>

  • List Pages In your theme use:

<?php if ( function_exists( 'jp_msl_pages') : jp_msl_pages(); endif; ?>

Planed Features For Version 1.0

  • Experation controls

    Write jp_transient::reset

    Ability to pass time or other reset params from out of class functions to jp_transient::set.

    Ability to set reset time to a WP cron job.

    Ability to set reset time to a real cron job.

    Control cron time from options page.

    Ability to expire on certain actions (like when a post or page is published.)

    Ability to reset on expiration.

  • Use WP_Query instead of get_posts() and get_pages

    Ability to pass WP_Query args to jp_multisite_list::posts and jp_multisite_list::pages

    Pass those args from out of class functions as well.

  • Option to show/ not show blog title.

  • Option to show posts and pages together.

  • Widget With Options

  • Merge jp_multisite_list::posts and jp_multisite_list::pages into one method to do either or both.

  • Documentation

Current Known Limitations and Issues

  • No automatic reset.

    Once list is created it has to be manually deleted from the transient cache.

  • Deprecated function/ Beta Function

    To get the list of blogs wp_get_sites() a new function added in 3.7 beta 1 is used.

    Backwards compatibility is offered via the deprecated and not so good function get_blog_list. I will probably get rid of this backwards compatibility once 3.7 is released.

License and Contributions

Copyright 2013 Josh Pollock. Licensed under The GNU General Public License version 2 or later.

http://www.gnu.org/licenses/gpl-2.0.html

Pull requests and other contributions are welcome.

Bitdeli Badge

jp-multisite-list's People

Contributors

shelob9 avatar bitdeli-chef avatar

Watchers

James Cloos avatar  avatar  avatar

jp-multisite-list's Issues

Improve listing method

-[ ] Merge jp_multisite_list::posts and jp_multisite_list::pages into one method to do either or both.

-[ ] Option to show/ not show blog title.

-[ ] Option to show posts and pages together.

Basic Expiration Controls

  • Write jp_transient::auto_reset
  • Ability to pass time or other reset params from out of class functions to jp_transient::set.
  • Ability to expire on certain actions (like when a post or page is published.)
  • Ability to reset on expiration.

Expire Based On Cron Job

  • Ability to set reset time to a WP cron job.
  • Ability to set reset time to a real cron job.
  • Control cron time from options page.

All Widget Controls

Options

  • Show blog name or not
  • Show posts/ pages toghether per blog.
  • Only posts
  • Only pages
  • wp_query args

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.