Before you ask please READ THIS

Beach Please: qTranslate on Works Page - Using shortcodes on Custom Fields.

edited July 2013 in Beach Please Posts: 23
Hello there,

I'm having a difficult time trying to implement qTranslate on the theme's custom fields. Using [:en] or tags on the field when filling up is not working.

I read on qTranslate foruns that it's usually the function is missing a "__()", so it will parse the qTranslate tags.

Can you please help me with that? If i could only make "Subtitles" field translatable using this wTranslate tags would be great.

page is here: http://www.museunaif.com/wordpress

thanks.

Comments

  • AirAir
    Posts: 10,970
    Hello

    I think that none of these fields are displayed using this function as they are not part of layout.
    Are you talking about subtitle field of pages? If yes, you can try to edit file
    advance\utilities.php line ~218, and change
    $s = get_post_meta(get_the_ID(), '_subtitle', true);
    to
    $s = __(get_post_meta(get_the_ID(), '_subtitle', true));
    But I don't know if it should work that way.

    With regards.
  • edited July 2013 Posts: 23
    It worked like a charm. I hope this post can help more people : )

    i used [:en] type of tags of qTranslate : )

    Thank you very much!
    Post edited by marcusvpais on
  • AirAir
    Posts: 10,970
    Thanks for that info! This very valuable info for me also:-)

    With kindly regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!