• Resolved 1RONMAN_C

    (@1ronman_c)


    Hi everyone!
    I really-really need your help.
    I am using wordpress theme called Avenue, this theme is from web2feel.
    It’s a real estate theme and it has listing in it. I want to translate this listing. But Polylang don’t see the strings that I need to translate. Therefore I need to add them manually but I can’t understand how I should do it. There is a file listhome.php, which contain all of them. Looks like this:

    <div class="propmeta">
    	<div class="proplist"><span>Price</span> <span class="propval"> <?php $price=get_post_meta($post->ID, 'wtf_price', true); echo $price; ?></span></div>
    	<div class="proplist"><span>Bedrooms</span> <span class="propval"> <?php echo get_the_term_list( $post->ID, 'bedrooms', '', ' ', '' ); ?></span></div>
    	<div class="proplist"><span>View</span> <span class="propval"><?php echo get_the_term_list( $post->ID, 'property', '', ' ', '' ); ?></span></div>
    	<div class="proplist"><span>Area</span> <span class="propval"> <?php echo get_the_term_list( $post->ID, 'area', '', ' ', '' ); ?></span></div>
    	</div>

    I need to be able to translate the words “Price”, “Bedrooms”, “View” and “Area”.
    Please explain me, how can I add them to make it possible to translate them with a help of Polylang?
    Thanks in advance and sorry if my english is too bad.

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter 1RONMAN_C

    (@1ronman_c)

    Oh, not working.. ??
    I don’t know why it is so, I did everything like you said, except name of the string, of course, but when I test it it shows me “pll_e(‘Price’)”, instead of just “Price”.
    I can translate the string inside Polylang, but at the frontend it looks like so.

    Thread Starter 1RONMAN_C

    (@1ronman_c)

    Nevermind my latest post)))) I’ve forgotten to put <?php ?> )))))

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Polylang&Avenue theme from web2feel – Listing translation’ is closed to new replies.