Archive for the ‘wordpress’ Category
I don’t understand. use_desc_for_title in wp_list_categories does not work!
I do not understant.. May be it’s a bug. I try to disable a tooltip on mouse hover on category links by using use_desc_for_title parameter for the wp_list_categories function. It isn’t working! I try to use 0 (false) value as a parameter but it doesn’t matter.
wp_list_categories('show_count=1&title_li=&use_desc_for_title=0'); |
Anybody knows what is happening?
I’ve just found a workaround but it’s looked like a hack. I don’t like that. The meaning of this workaround is that you add a filter for the wp_list_categories function that removes title attribute from the each link.
function wp_list_categories_filter($value) { $value = preg_replace('` title="(.+)"`', '', $value); return $value; } add_filter('wp_list_categories', 'wp_list_categories_filter'); |
“Unable to create directory…” error in WordPress
I moved my WordPress site to another host. After the moving, I had an error:
Unable to create directory /hsphere/local/home/infous/starikovs.com/wp-content/uploads/2010/09. Is its parent directory writable by the server?
The first idea I had was about folders or files permissions. I changed the permissions but an error sill was there. After I googled some time I found that there’s a setting that sets the uploading path. I changed this setting and an uploading started to work OK!
To change an uploading path go to:
wp-admin -> Settings -> Miscellaneous -> Store uploads in this folder, and set the correct path. I chose the default folder wp-content/uploads and it works well in my case.
Today, I had a terrible problem with WordPress. When I tryed to log in, wp-login.php always redirected to wp-login.php and it was looked like a loop. I read a lot of forums and articles and nothing helped.
In my case, the problem was in plugins. For the test value, I started to remove plugins one by one and I found that the problem was in plugin xLanguage. After I removed the plugin’s folder by FTP, the problem was fixed. Huh, it took two hours for me to solve this problem!
Here’re the advices I found at forums and other resources but they didn’t help me:
- Clearing cookies.
- Clearing browser cache.
- Restarting browser.
- Logging in using an incorrect user name and password then logging in using the correct ones.
- Hacking wp-config.php and adding
define
statements: DOMAIN_CURRENT_SITE, ADMIN_COOKIE_PATH.