WordPress.org

Ready to get started?Download WordPress

Forums

Multi-Site Site List Shortcode
Include sites (not exclude) - Solved (1 post)

  1. moneypumps
    Member
    Posted 2 years ago #

    I wanted to have control over which sites appeared
    in the list. By default, new blogs appear on the list
    and have to be excluded.

    I wanted the the other way around. To be able to check to
    include blogs.

    A very simple edit of the plugin fixed this for me.

    Line 123

    if($sitedetails && !in_array($blog, $excluded)) { //if the blog exists and isn't on the exclusion list add it to array

    Just removed the ! from !in_array now the exclude checkbox means include.

    And it works.

    http://wordpress.org/extend/plugins/multi-site-site-list-shortcode/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.