Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter lightblack

    (@lightblack)

    I 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>

    Thread Starter lightblack

    (@lightblack)

    hi 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

    Hello,

    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.

    I’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

Viewing 4 replies - 1 through 4 (of 4 total)