wordpress,.htaccess,redirect,multisite
If i understand well your problem i think that you can use a simple plugin for redirection like Safe Redirect Manager It's very simple to use....
php,wordpress,function,multisite
You can replace in HTML by using java-script. Just need to replace text 'Site Added.' with your own custom message. Here is the complete code that you need to add to your plugin. function custom_admin_js() { echo "<script type='text/javascript' > document.body.innerHTML = document.body.innerHTML.replace('Site added.','custom message'); </script>"; } add_action('admin_footer', 'custom_admin_js'); I...
sitecore,sitecore7,web-forms-for-marketers,multisite
You can specify the root form folder in your <site> definition, by default the forms.config file specifies the following, which points to /sitecore/system/Modules/Web Forms for Marketers/Website: <sites> <site name="website"> <patch:attribute name="formsRoot">{F1F7AAB6-C8CE-422F-A214-F610C109FA63}</patch:attribute> </site> </sites> In a multi-site instance you need to specify the formsRoot attribute for each site: <sites> <site name="site1"...
select * from wp_blogs From the output of the command note down the blog_id you want the users of. For eg: say you are wanting the users of the site with blog_id = 2 , next run the following query. select * from wp_users u join wp_usermeta um on...
This stackoverflow question on IIS has the answer: getting 404 error on admin panel for sub-directory multisite on a sub-domain in wordpress It gives this XML for the web.config <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="WordPress Rule 1" stopProcessing="true"> <match url="^index\.php$" ignoreCase="false" /> <action type="None" /> </rule> <rule...
php,wordpress,conditional,multisite
Behind the scenes in WordPress multi-site, each "site" is actually called a "blog" (the "site" is the overall network.) Each of your different blogs will have a different ID. You can fetch the ID using get_current_blog_id. To make the code easier to read, though, I'd probably use get_blog_details, which returns...
Okay, i did this kind of things before. here are the tips to follow you debug: before we start, We assume your multisite network is setup successfully. setting up adding new site 1.Go to login main site wp-admin, which will lead you to network wp-admin then you can create new...
php,wordpress,meta,author,multisite
You must supply the User ID when using get_the_author_meta() to get a different user than the one in the loop or currently logged in. Assuming username1 and username2 are actual usernames in the users database table you can get the username from the URL by using the following snippet: $username_from_url...
php,wordpress,wordpress-mu,multisite
Your problem seems to be with this section: s:225:"<dl class="dl-horizontal"> <dt>Monday to Thursday:</dt> <dd>12noon - 2:30pm & 5:30pm - 9:00pm</dd> <dt>Friday & Saturday:</dt> <dd>12noon - 2:30pm & 5:30pm - 9:00pm</dd> <dt>Sunday:</dt> <dd>12noon - 8:00pm</dd> </dl>" ...where I think you've counted the characters wrong. Certainly if I cut and paste your...
You can use this code in your DOCUMENT_ROOT/.htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^(folder-name)\. [NC,OR] RewriteCond %{REQUEST_URI} ^/(folder-name)/ [NC] RewriteRule ^ /index.php?id=xx [L,QSA] ...
symfony2,subscription,sylius,multisite,sonata
I might be a little biased towards Sylius, as I work with it constantly - I've tried using Sonata bundles in projects before but failed in making use of them. Reasons for using Sylius are that it's heavily decoupled and customizable, which is exactly what you want if you need...
As a result, I decided to use the hook template_redirect. Code of plugin for posts and pages: <?php /* Plugin Name: Global posts */ add_action( 'template_redirect', 'global_posts_redirect' ); function global_posts_redirect() { global $wp_query; if ( $wp_query->is_404() && !is_main_site() ) { //switch to primary site for checking post/page switch_to_blog( 1 );...
I have figured it out myself. For those who are searching client side redirect with javascript, can remember their selected option with this code <script type="text/javascript"> if (localStorage && localStorage.city1) { location = localStorage.city1; } function formChanged(form) { var val = form.options[form.selectedIndex].value; if (val !== 'non-value') { if (localStorage) {...