lightblack
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: localization in dynamic menuI found the solution.
You cannot use the e() function you need to use the __() function to return the string. <li<?php if (is_single() && in_category(__('about', 'themeName')) || is_child(123)) { { echo ' class="current"'; }?> <?php } ?>> <a id="nav1" href="<?php bloginfo('url'); ?>/<?php _e('about','themeName'); ?>" title="<?php _e('About','themeName'); ?>"><?php _e('About','themeName'); ?></a></li>Forum: Fixing WordPress
In reply to: localization in dynamic menuhi and thanks for your reply.
My actual problem is not the highlighting of the menu but how to make the term _e(“mycat”) translatable(localization).I would like to have the category term e.g. about translated depending on the language <?php if (is_page(‘about’) ) so in German it looks for the catgory name ‘ueber’ by using the _e() function.
I’m not sure what I’m missing syntax error this does not work.in_category(‘_e(“mycat”)’)
Thanks
Forum: Fixing WordPress
In reply to: wp_get_archives year rewriting helpHello,
how would I go about changing the month to the abbreviated form in this rewrite in my archives.
I’d like to display it like Jan ’09
I just don’t know what I’m missing. Help would be really appreciated.J.
Forum: Fixing WordPress
In reply to: the_author_description() function doesn’t work in search pageI’m using WP version 2.6.3 and it is not working. The image shows up but the author description doesn’t. Any ideas? Thanks