Tag Info

New answers tagged

0

Actually, I solved it thanks to this reference: https://rtcamp.com/wordpress-nginx/tutorials/multisite/subdirectories/in-a-subdirectory/ With the root directory of the installation being "labs" in my case, the final nginx configuration file looks like: # You may add here your # server { # ... # } # statements for each of your virtual hosts to this file ...


0

You may find the ThreeWP Broadcast plugin useful. It takes care of "broadcasting" new posts/pages and updates to them to (any or all) sites in a WordPress MultiSite installation. It has a lot of add-on plugins that extend its functionality even further.


1

Yes, you can add website specific class to BODY, for example. Best approach is to create little multisite enabled plugin, that adds some class to BODY in body_class filter. function customBodyClass( $classes ) { global $current_blog; $classes[] = 'website-'.$current_blog->blog_id; return $classes; } add_filter( 'body_class', 'customBodyClass' ); ...


0

First thing get_current_theme() is deprecated since version 3.4 you need to use wp get theme() to get the current theme name. And about add_menu() you can only use it at action hook admin_bar_menu as codex say about it: This is not a function. It is a method of the $wp_admin_bar global (an instance of WP_Admin_Bar), which may not exist except during the ...


1

WordPress multisite can handle different top-level domains by default. Just set up a Ā»Sub-Domain InstallĀ« multisite starting from your existent WordPress (example.no). Then, add a new site with an arbitrary subdoman (e.g. se.example.no). Right after you created the new site, got to the sites edit screen (edit site) and change the domain to what ever you ...


0

I made some changes in functions.php: function remove_media_tab( $strings ) { if( !current_user_can( 'administrator' ) ) { $strings["createGalleryTitle"] = ""; $strings["setFeaturedImageTitle"] = ""; $strings["insertFromUrlTitle"] = ""; } return $strings; } add_filter( 'media_view_strings', 'remove_media_tab' ); It ...


6

Note: this is an incomplete answer which will be expanded upon incrementally The only reliable way to flush rewrite rules in multisite, without potentially destroying the permalink structure of the primary and or any other blog context (depending upon how and what you a switching to and from) is to flush rewrite rules in a given context like so: global ...


0

This plugin does the job too: https://wordpress.org/plugins/reorder-my-sites/


0

You need to use the --url flag when you have a multisite. wp-cli --debug --url=www.example.com or wp theme list --url=www.example.com


0

I made the activate page same as the rest of the site by adding this: require_once($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');


0

Use PHP and the WordPress API. Place the following in copy-options.php and FTP it to wp-content/plugins, then activate it from the main site: <?php /** * Plugin Name: Copy Options * Plugin URI: http://wordpress.stackexchange.com/q/186092/1685 * Description: Copy options from site 2 to site 1. * Version: 0.1 * Author: TheDeadMedic * ...


0

It is possible to upgrade/update the database for each child site individually by visiting: https://rootsite/subsite/wp-admin/upgrade.php See also related core trac ticket, Database is not upgraded in multisite if loopback is disabled


1

You have forwarded the wildcards to the wrong subdirectory this is why you are seeing the Plesk default page. The wildcard subdomain rule should point to the folder of your wordpress multisite installation. Wordpress reads the URL from the request and then internally routes to the correct site. If it's not pointed to right place then this can't happen. I ...



Top 50 recent answers are included