grosshat
Forum Replies Created
-
Forum: Networking WordPress
In reply to: get_language questionThat is weird. :/
How do you get when you do
print_r
for each value?print_r(bloginfo('language'))
print_r(substr(bloginfo('language'), 0, 2))
Forum: Networking WordPress
In reply to: get_language questionOki. The code I gave you is working as plain PHP. You can test it and see that. The problem could be the way the function is called on the plugin.
So, do not call a function, just parse directly the value of the ISO.
echo substr(bloginfo('language'), 0, 2);
Forum: Networking WordPress
In reply to: get_language questionWhere are you calling that code? At
functions.php
level or template level?Maybe I am missing something, but I cannot reproduce the issue for ‘anteros.eu’. It redirects to ‘www.anteros.eu’. Is it right?
Forum: Networking WordPress
In reply to: Child Page Permalinks Not WorkingGreat! Nice to see you finally got it. Congrats. ??
Forum: Networking WordPress
In reply to: get_language questionWell, do not give up. ??
Are you using the value returned by the function
get_short_lang()
(ie. $lang)? This is the value you need.Forum: Networking WordPress
In reply to: get_language questionSorry, the code I wrote was wrong, since I was passing
$lang
to the function instead$iso
. And I assumed that you would call the function somewhere to get the value.So the right code would be:
<?php $iso = bloginfo('language'); $lang = get_short_lang($iso); /** * Get the first two letters of a language ISO. * * @param string $iso * @return string $lang */ function get_short_lang( $iso ) { $lang = substr( $iso, 0, 2 ); return $lang; } ?>
Forum: Networking WordPress
In reply to: How do you edit your theme in WordPress Multisite?Do you mean you have created a site, then went into this site and there is no link on menu for appearence settings?
Forum: Networking WordPress
In reply to: get_language questionI am not sure if you are using an own function
get_language
for fetching ISO language. If so, I do not know the specifics of this.If you just want to get the language used on a blog, use the standard call
bloginfo('language')
. That returns the ISO, ie. en-US. From there you can decorate it with a helper function so:<?php $iso = bloginfo('language'); function get_short_lang( $lang ) { $lang = substr( $lang, 0, 2 ); return $lang; } ?>
Forum: Localhost Installs
In reply to: fatal error when activating template themesThe path you give points to a file within a theme called ‘yoo_symphony_wp’, which at the same time has a messy organisation: warp/systems/wordpres3.0…
How is your WordPress built? :/
Forum: Networking WordPress
In reply to: How do you edit your theme in WordPress Multisite?You get the theme editor within each site of the network.
Forum: Networking WordPress
In reply to: Domain mapping results in redirect loop between the two sitesIt looks too messy. :/
Always you manage different domains you have to take into account 3 parts of the problem:
- WordPress network configuration
- HTTP Server (mostly Apache) configuration
- DNS configuration
You must to check each point to be sure of having everything ok. For instance, do you have WordPress configured for serving different domains? Do you have VirtualHost, at Apache level, for each domain? Do you have DNS entries for each domain, pointing to the right IP?
Forum: Networking WordPress
In reply to: One Database – Many Subdomains – Shared ContentIf I understand this right, you want to get specific users for each site. Is it? Of course, you can. You might have a common user for generating sites (a main global admin), and then create specific users within each site.
Forum: Networking WordPress
In reply to: Yet another subdomain problem with WPMUDo you manage the config of Apache? Do you know if you have a virtual host configured with an alias pointing to *.spendenkiosk.de?
Forum: Networking WordPress
In reply to: Yet another subdomain problem with WPMUI’ve being having problems sending emails to you. I’ve checked your network config on WordPress, and now I need to check your ‘.htaccess’ and ‘wp-config.php’ files. Give me access to the host, or just send me that by mail. ??