multisite

Wordpress Multisite: Subsite wp-admin “err_too_many_redirects”

旧巷老猫 提交于 2020-06-24 11:53:29
问题 i installed a new WordPress 4.1 multisite I can navegate Front and access to the main site dashboard http://blog.urlcorrect.com/wp-admin/ I created a subsite and i can´t access to the subsite dashboard http://blog.urlcorrect.com/br/wp-admin/ I have this error: Código de error: ERR_TOO_MANY_REDIRECTS -- I can access to the Front http://blog.urlcorrect.com/br/ but without styles, the css url is incorrect (Page not found): http://blog.urlcorrect.com/br/wp-content/themes/twentyfifteen/style.css

How to show primary menu of main site throughout multi-site network

限于喜欢 提交于 2020-01-16 09:09:21
问题 I have managed to switch the primiary navigation menu of my subsites to show the main site primary navigation. However, it renders above the site-header instead of in the menu location dictated in the code. Here is the code I currently have: function wp_multisite_nav_menu() { global $blog_id; } if ( ! is_multisite() || 2 == $blog_id ) { switch_to_blog( 1 ); wp_nav_menu( array( 'menu' => 2, 'fallback_cb' => false, 'menu_class' => 'genesis-nav-menu', 'theme_location' => 'Primary Navigation Menu

Multiple websites with one Laravel installation

爷,独闯天下 提交于 2020-01-03 03:04:49
问题 Initially, I will install Laravel and set it up for a new website called admin.example.com. This will be a simple dashboard just for my use. Next I want to set up www.example1.com with all of the functionality for ecommerce, inventory control, user management, etc. Once that is up and running, I will set up www.example2.com. Can all of these various websites share the same models, views, and controllers? 回答1: You should use route groups and domain property for that: Route::group(['domain' =>

Redirect sub domain to main domain without effecting sub folders with .htaccess

好久不见. 提交于 2019-12-25 04:23:13
问题 My situation is as follows: I've have a new website at my main domain. Example: mywebsite.com. My old portfolio is located at an old sub domain: portfolio.mywebsite.com. All portfolio items can be found in a sub directory at the portfolio site. So portfolio item 1 can be found at portfolio.mywebsite.com/item-1, etc. The sub domain is running WordPress with Multisite enabled. The sub domain and main domain are hosted by different web hosts. I want to redirect all traffic from portfolio

Wordpress Site Admin can't publish <iframe>s on multsite network

我们两清 提交于 2019-12-25 03:31:57
问题 I have a Wordpress multisite network. I've found that if you're not a Network Admin, Site Admins cannot publish <iframe>s or <script> tags. What I've tried: Added the unfiltered_html capability to the Admin role Added iframe to the global $allowedtags Added iframe to the extended_valid_elements using the tiny_mce_before_init filter I've read around a lot, and I know there's an Iframe plugin, but It would really be best to allow my users to copy and paste Iframes from YouTube, etc. Any insight

Error and notice in Phpmyadmin database. How to fix it?

旧时模样 提交于 2019-12-24 19:03:09
问题 It shows: Warning in ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable Backtrace ./libraries/sql.lib.php#2128: PMA_isRememberSortingOrder(array) ./libraries/sql.lib.php#2062: PMA_executeQueryAndGetQueryResponse( array, boolean true, string 'wp_wordpress', string 'wp_3_options', NULL, NULL, NULL, NULL, NULL, NULL, string '', string './themes/pmahomme/img/', NULL, NULL, NULL, string 'SELECT * FROM `wp_3_options`', NULL, NULL, ) ./sql.php#221:

(Wordpress Multisite) Display page as homepage in chosen weekdays

给你一囗甜甜゛ 提交于 2019-12-24 08:47:28
问题 How can I make chosen page to display as homepage of my multisite site depending on a week day? I have this function to display my page depending if user is logged in or not, next I want it to work differently during tuesday (picking different pages as follows): function switch_homepage() { if ( is_main_site() ) { // Do stuff only for the main site if ( is_user_logged_in() ) { $page = 4284; // for logged in users update_option( 'page_on_front', $page ); update_option( 'show_on_front', 'page'

WordPress Network install error

こ雲淡風輕ζ 提交于 2019-12-13 19:07:27
问题 Reinstalling wordpress multisite Warning: an existing wordpress network was detected. I tried multiple solutions including dropping tables, resetting .htaccess and completely resetting wp_config. It installs fine the first time but when I log out and log in I get this error. 回答1: Follow the steps in this order 1) Reset your wp-config.php file back to its original state, remove any MULTISITE references 2) Delete the .htaccess file or move it temporarily 3) Drop the following tables from your

WordPress multisite setup as subdomain - wildcard DNS record setup

筅森魡賤 提交于 2019-12-13 16:15:35
问题 I am new to WP multisite environment. I want to setup multisite in my local Ubuntu 14.04 environment. I already have localhost for my main site configured as carbazarlocal.com and its running OK. When I go to Tools > Network Setup I can see two options - Sub-domain and Sub-directory. I want to setup my multisites as sub-domains like dealer1.carbazarlocal.com, dealer2.carbazarlocal.com etc. On this page WordPress says "You will need a wildcard DNS record if you are going to use the virtual