Multisite pagination with get_posts
The solution to that was pretty simple. I just replaced get_posts() with a simple new WP_query() : $query = new WP_query($args); I guess now you have a ready-to-implement function for pagination ^^
The solution to that was pretty simple. I just replaced get_posts() with a simple new WP_query() : $query = new WP_query($args); I guess now you have a ready-to-implement function for pagination ^^
I don’t use MU and I can’t test this right now but… If you started with a fresh 3.8.1, then your .htaccess file should look like this (per the Codex): RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} … Read more
Solved. Just for completeness I add a rule to the web.config file : <rule name=”WordPress Rule 2″ stopProcessing=”true”> <match url=”^([_0-9a-zA-Z-]+/)?(wp-comments-post.*)” ignoreCase=”false” /> <action type=”Rewrite” url=”{R:2}” /> </rule>
I develop locally in a non-multi-site environment, then push to a multi-site (not the users or user_meta tables). Most plugins will work, but some expressly do not, so you should check with each first. This workflow was used on a WooCommerce site with no issues. Get comfortable with the table structure differences between standard and … Read more
Plugins with Network: true in their header cannot be seen, activated or deactivated in sub sites. The reason is simple: You need super admin rights to do something with them, and their settings section (if there are any) are visible in wp-admin/network/ only. Even if you are the super admin and on a sub site … Read more
As you assumed – the solution is pretty easy. First create a file(for instance) skip-email-check.php and inside it put the code from the other answer: add_filter(‘wpmu_validate_user_signup’, ‘skip_email_exist’); function skip_email_exist($result){ if(isset($result[‘errors’]->errors[‘user_email’]) && ($key = array_search(__(‘Sorry, that email address is already used!’), $result[‘errors’]->errors[‘user_email’])) !== false) { unset($result[‘errors’]->errors[‘user_email’][$key]); if (empty($result[‘errors’]->errors[‘user_email’])) unset($result[‘errors’]->errors[‘user_email’]); } define( ‘WP_IMPORTING’, ‘SKIP_EMAIL_EXIST’ ); return $result; … Read more
Create your own plugin with this code or put this in theme’s functions.php add_action(‘init’, ‘remove_update_notification’, 1) function remove_update_notification() { if (!current_user_can(‘manage_network’)) { // checks to see if current user can update plugins add_action( ‘init’, create_function( ‘$a’, “remove_action( ‘init’, ‘wp_version_check’ );” ), 2 ); add_filter( ‘pre_option_update_core’, create_function( ‘$a’, “return null;” ) ); } }
Just change the http to https in there: @font-face { font-family: ‘Open Sans Condensed’; font-style: normal; font-weight: 700 !important; src: local(‘Open Sans Condensed Bold’), local(‘OpenSans-CondensedBold’), url(https://themes.googleusercontent.com/static/fonts/opensanscondensed/v6/gk5FxslNkTTHtojXrkp-xOV5Bi3AvzDkLbMkkmS9JR4.woff) format(‘woff’); } Google sends them over https too.
Yes. Yes they can. In my testing and throughout the code you see switch_to_blog(another_blog); do_something(); restore_current_blog(); If you weren’t able to do that I think WP would not run.
Try to set the WP_DEBUG constant to true in wp-config.php file to get any errors shown in your browser. Also, you may want to check the network has been setup correctly – double check you have followed the steps here – http://codex.wordpress.org/Create_A_Network