1
vote
1answer
18 views

How to get correct URLs in network wide menu (Multisite)?

I'm using this function to switch to my main website's navigation and display it on all sub sites in my multisite network. Ideally the links should have the following format: ...
1
vote
1answer
48 views

Global functions on WPMU

I work in a multisite environment where all of the sites are related. A lot of recent developments have required me to copy and paste certain functions into many different theme folders, which causes ...
0
votes
0answers
23 views

Using a Multi Site Users Blog ID as a WP Prefix

I'm trying to update a plugin so that the prefix for the defined tables is taken from the ID of the posts authors site This is what I am trying to do at the moment function { global $authordata, ...
0
votes
1answer
32 views

functions.php return custom text

I am looking to add custom text to the site in functions.php. I am using multisite. Is there a hook to determine which site so I can alter the text? For example: function greeting(){ ...
0
votes
1answer
41 views

Function that outputs second theme url

I have a multisite and need a function (added to functions.php) that will get the template url of the second theme (probably by name or other identifier)? Example: theme-1 (used by main site) ...
0
votes
0answers
48 views

List all recent post by categories at the front page (WordPress MU)

I'm looking how can I put on the network homepage all recent post of my WPMU Network. I tried that script but there are not so much informations (I want the same presentation such as a normal post) : ...
0
votes
1answer
105 views

Delete pages and Create default pages for all new network sites

I am using the following code to delete some default pages and to also create some default pages for all new sites that are created. It work as is now but that is only because I purposely have a ...
1
vote
0answers
73 views

Prevent “main” WPMU site_url() being returned in functions

I've noticed that in a WordPress MU install with domain mapping enabled, some functions return URIs that don't use the current WPMU site's primary domain name which possibly means they are "WPMU ...
0
votes
0answers
40 views

Run function from parent on child site

I'm running a Multisite WordPress installation and have a couple of child sites. I'm trying to run a script from the main page on one of the child sites. It can be a shortcode [pro_display_zone ...
0
votes
2answers
70 views

Different functions file for each site in multisite installation?

I'm trying to create two (for now) sites in multisite WP installation that use same theme, but require somewhat different functionality i.e homepage has a bit different layout and there will be some ...
1
vote
0answers
73 views

Multisite 404 on pages - rewrite error breaks database

After updating my reading settings on my multisites, I get 404 errors on all my pages. The only way to fix the issue is by reverting the database to previous version, that is the only way it can be ...
2
votes
2answers
61 views

Display All Non-Used Plugins

My company currently has a multisite of about 20 sites, and growing every day. We're trying to go through the plugins and set standards. IE, forms use plugin X. However, we have not found a single way ...
0
votes
1answer
44 views

Dashboard blocker on network multisite for specific user roles

I have used this function below for a while now on normal WordPress installs. It simply blocks users with specific user roles, and redirects them to the home page of the site. function ...
0
votes
1answer
90 views

Trying to output a “Most visited blogs” list in wordpress multisite

Does anyone know how to get a "most visited" list out of Wordpress Multisite? I got alot of bloggers and have been looking for a way to output a top 10/20 list of most visited blogs, but cant find ...
2
votes
1answer
202 views

Multisite, either change the name of sample-page or create new page

Is there a way to either change the name of the default Sample Page or create a new page entirely everytime a user creates a new blog on WP multisite?
2
votes
1answer
632 views

What is the function to get plugin base url in multisite?

I'm using this function plugins_url(). But it always echoes main site url even in subsite. So i'm getting ajax errors like Domains, protocols and ports must match. Lets say my main domain name is ...
0
votes
1answer
406 views

Remove default post types on all sites except primary blog. WPMU

I'm trying to come up with a solution that would allow me to remove the default post types (pages, posts, comments, links, etc) from all the multi-site blogs EXECEPT the primary blog. It will remain ...
0
votes
1answer
574 views

Wordpress multisite,use same cookies across all website?

Hi is this posible to use same custom cookies across all blogs?Can someone help me with this?
2
votes
1answer
358 views

Plugin Uninstall and Deactivate via Options Menu

I'm creating my first plugin (modifying an existing one for what I need) and although it's working fine i am trying to create a simple options menu to allow either deactivation of the plugin, or ...
3
votes
1answer
222 views

Hard Code Pages into a Theme for a Network (multisite) Installation

I'm creating a multisite network and I am looking for a way to have it so new blogs that are created have a couple of standard pages set up automatically. The purpose of these pages will be to ...
10
votes
1answer
564 views

Is there a is_user_logged_in() for multisite?

Is there a is_user_logged_in() function for Wordpress MU / Multisite (3.0+) where I can add in the network site ID like is_user_logged_in(2) where 2 would be the site_id? Update: After a little ...
1
vote
1answer
1k views

get_current_site() not returning site name

The function get_current_site() that's in my themes' footer.php file doesn't return the 'site name' property as specified in the docs (and expected in the theme). The purpose of the function is to ...
0
votes
2answers
389 views

How can I append blog_id to … echo [functions-defined-constant]?

I use 'constants' a lot. I set them in functions.php like define('mytheme_town', 'Orlando'); and then call them into the theme <?php echo mytheme_town ; ?>. It's simple and easy. But I need ...