global categories – Share specific categories in wordpress multisite

Here is a solution I found- // even before any taxonmy/terms are initialized, we reset the tables add_action( ‘init’, ‘the_dramatist_change_tax_terms_table’, 0 ); // on blog switching, we need to reset it again, so it does not use current blog’s tax/terms only // it works both on switch/restore blog add_action( ‘switch_blog’, ‘the_dramatist_change_tax_terms_table’, 0 ); function the_dramatist_change_tax_terms_table(){ … Read more

How to hide blog by id wordpress multisite listing

How about an if statement? <?php $blogs = get_last_updated(‘ ‘, 0, 3); foreach ($blogs AS $blog) {; switch_to_blog($blog[“blog_id”]); $lastposts = get_posts(‘numberposts=1&orderby=date’); foreach($lastposts as $post) : setup_postdata($post); ?> <?php if $blog[“blog_id”] != 1 { ?> // Run the Output if the ID is not X <div class=”col-sm-4 blog-newest”> <!– blog name –> <h3><?php echo $blog_title = … Read more

Can I run a second wordpress site as a subdomain without using multisite?

Point the subdomain to the same directory as the main site, and define different settings in your wp-config.php per $_SERVER[‘HTTP_HOST’]: Example from my local setup: switch ( $_SERVER[‘HTTP_HOST’] ) { case ‘zzl.dev’: $table_prefix = ‘zzl_’; $table_name=”zzl”; break; case ‘wpbuch.dev’: $table_prefix = ‘wpbuch_’; $table_name=”wpbuch”; break; default: $table_prefix = ‘wp_’; $table_name=”wpdev”; break; } $sub = ‘/wp-content/’ . … Read more

wordpress multisite config issue needs help

You need to change define(‘SUBDOMAIN_INSTALL’, true); to define(‘SUBDOMAIN_INSTALL’, false); to start with. Maybe you need to modify you .htaccess file as well. For more info the WordPress codex has a lot of info: https://codex.wordpress.org/Multisite_Network_Administration

Nginx rules for subdomain multisite install (Bedrock)

Ok some wise guy deleted my last post. The answer, which the above member (@etc) gave to me on another forum, and is working quite fine, is as follows: # Rewrites for Bedrock Multi-Site Subdomain Setup rewrite /wp-admin$ $scheme://$host$uri/ last; rewrite ^/(wp-.*.php)$ /wp/$1 last; rewrite ^/(wp-(content|admin|includes).*) /wp/$1 last; He revised his answer but did not … Read more