The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. moneypumps
    Posted 3 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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multi-Site Site List Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.