I have a strange problem I'm facing when using WP_Query with multisite in a plugin I'm writing which hooks into add_meta_boxes. I'm wanting to display all post titles in a dropdown in a meta box. While adding or editing a post in blog no. 2 (it could be any blog no.), I am looping through blog no. 1 and getting post titles from a custom post type to populate in a select dropdown. This works as it should, but in …
I have a WordPress multisite with one main site and four sub-sites. In a PHP template on my main site, I would like to get the posts from one of the sub-sites and print the permalinks to the page. How is this done? My code is below--when this code is executed, permalinks are indeed printed to the screen, but they are incorrect--the post name is correct, but the path is incorrect. $tp_blog_id = 4; switch_to_blog( $tp_blog_id ); $posts = get_posts( …
The project I am working is to create a platform,where every items posted can be exchanged for 1 token, instead of paying prices. To do this, I`ve tried YITH /SUMO /Woocommerce reward points plugins, and Dokan as the multi-vendor plugin. Here are the problems I encountered: Among all the reward points plugins, SUMO reward point is closest to my needs, as it provide payment gateway using award points. However,in each reward points plugins I tried,points-payment is just a converted version …
Hoping to help others with this ticket as well I explain the process I followed to enable WordPress multisite on a site that is more than 30 days old and therefore displays the following message when creating the network: "Because your installation is not new, sites in your WordPress network must use subdomains. The main site in a subdirectory installation will need to use a modified permalink structure, potentially breaking existing links." I have the following code on the wp-config.php …
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: http://www.mysite.com/navigation-link but on the sub-sites the urls are http://www.mysite.com/subsite/navigation-link Obviously these pages don't exist so it's just showing a blank page. Any idea how I could make sure the urls are like the first example and how I might incorporate that into my function? function wp_multisite_nav_menu() { global $blog_id; $args …
I have created a multisite wordpress with subdomains (hosting is Bluehost). Everytime I try to access the subdomains (test.example.com) I get a 404 error message. I copied the code to wp-config and .htaccess. I created a wildcard subdomain (*.example.com) and creates a folder in my public_html . Do I have to make changes to DNS records and what are those?
I know I am missing something simple. I am trying to use html to log to footer to learn wp. In theme functions.php: function myLog() { echo 'test'; } In theme footer within the .siteInfo div: <?php add_action( 'wpmu_new_blog', 'myLog' );?> when a new user creates a new site myLog should output html 'test'? Please help, save me many more hours of reading and trials.
When I call switch_to_blog() with a blog id, I don’t know whether that blog actually exists. The function returns always true. Test case: switch_to_blog(PHP_INT_MAX); $post = get_post(1); restore_current_blog(); This will result in database errors that are exposed to the user. How can I prevent that? Real-world use case I was the lead developer of MultilingualPress. When a user translates a post, she gets a screen like this: Now the following can happen: She saves the post successfully and continues translating …
I have heard similar questions posed but not exactly what I am looking for. Is it possible to create a multisite with different domains and sub.doamins? For example, can I create a network that allows me to create build: SiteName1.com is a BuddyPress video community. DomainName2.net is an online shop that sells products. TheDomain3.co is a web design & hosting company that creates and manages other websites. Users must be able to create subsites of their own like (username.TheDomain3.co) Also …
When new site is created on my multisite installation, I automatically add the new user to the main site (because I need him to order the product): add_user_to_blog( 1, $user_id, 'customer' ); I'd like to have the users automatically login them to all their sites, as soon as they login to one of the sites they belong to. I hoped to hook to the wp_login action and just set the auth_cookie for each sites the user belongs to, something along …
Im using WP 3.5.2 and WPMU. I develop one page http://baohiem.info/chon-mat-gui-vang. This page uses global $wpdb to query table _blogs.(_blogs was customized, added some fields.) When submit form, I use GET method, but, when log in, i have data ($_REQUEST; $_GET) but not log in, there're no data. Why? I don't understand what happen. Can anyone help me? Thank you. <?php get_header(); ?> <form action="" method="get"> <input id="searchfield-cmgv" type="text" name="hoten" placeholder="Họ và tên tư vấn viên...." size="35" value="<?=$_REQUEST['hoten']?>"/> <!-- location--> …
Any time I create a new site on my multisite install, I get an infinite loop redirect when navigating to that site's admin. I'm using the default htaccess supplied by WP for my subdirectory install. Here's what I have: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) site/$2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ site/$2 [L] RewriteRule . index.php …
I have a plugin I built that adds a custom media frame with the following: media_frame = wp.media.frames.media_frame = wp.media({ title: 'Select your images', button: { text: 'Use Image' }, multiple: false }); media_frame.open(); This produces a media frame that looks like this: Thus far, this has been all I needed, but my site uses Wordpress Multisite and I'm trying to add in the Network Shared Media plugin. However, Network Shared Media requires the media-frame-menu sidebar in order to access …
in wordpress multisite when we give to site admin the option to add new users, site admin dont have the "checkbox" to add the new user without sending the user email with link activation (see the screenshot) how can we add this option to site admin?
Hi I've been trying to figure this out for quite some time now, but whatever I do nothing seem to work. I have a VPS setup running Nginx + Varnish with WordPress multisite. Everything works fine except the admin/toolbar when browsing the sites. It simply wont load. It loads in the admin area, but when viewing site it doesn't load. I have checked the "Show Toolbar when viewing site", and I have deactivated all plugins. Now I have even gone …
We’re using WP Engine for web hosting. I originally manually turned on Multisite through wp-config.php & Tools > Network Setup. Since then, I've learned we need to use their Enable Multisite function to enable subdirectory multisite. When WP_DEBUG is on, we see a message: Notice: wp_check_site_meta_support_prefilter was called incorrectly. The wp_blogmeta table is not installed. Please run the network database upgrade. I then created wp_blogmeta manually using: CREATE TABLE IF NOT EXISTS wp_blogmeta ( meta_id bigint(20) unsigned NOT NULL AUTO_INCREMENT, …
I have installed a multisite network in WordPress on my test server and it was working fine but when I did the same on my production server it's not working properly. When I try to login in wp-admin it opens perfectly fine but when I try to open dashboard of subsite, its dashboard loads without css and none of the links opens (every link showing file not found) while the default dashboard working perfectly fine. This setup is working fine …
Dear fellow WordPress enthusiasts, I am using WordPress multisite. The default blog works, with permalinks, but not the subblogs. I get a redirect loop when trying to access /wp-admin on a network site. I am using FastCGI with Facebook's HHVM; similar to plain vanilla FastCGI. I know I am missing server blocks to redirect files: I want, first and foremost, to understand why I'd get a redirect loop on sub-sites. Thank you for your help. My nginx configuration is as …
My multisite WP website is redirecting all the 404, wp-cron.php, and admin-ajax.php to the homepage when the user is not logged in. .htaccess rules: RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] Please help me fix it. Thank you.
I install wordpress and set my website as multisite to have many sites I certainly make a mistake as I can't access to network administration anymore so I can't add a new site or see themes .... I don't know where to search and any help will be welcome