Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    If I well understood, you want to translate hardcoded strings in a PHP file. The most elegant way is to internationalize these strings and use po/mo files.

    See: http://codex.wordpress.org/I18n_for_WordPress_Developers

    Thread Starter oltrecomics

    (@oltrecomics)

    Hi Chouby,
    unfortunately, I do not understand very well the PHP language.
    Could you show me the lines of code that I have to enter and where do I put them, please?

    For example this:

    <?php 
    
    $terms = get_field('autori_opere');
    
    if( $terms ): ?>
    
    	<div class="box-tipo"><div class="box-campo">Autore: </div><div class="box-risultato"><ul class="box-voci">
    
    	<?php foreach( $terms as $term ): ?>
    
    		<li><a href="<?php echo get_term_link( $term ); ?>"><?php echo $term->name; ?></a></li>
    
    	<?php endforeach; ?></ul></div>
    
    	</div>
    
    <?php endif; ?>

    Thread Starter oltrecomics

    (@oltrecomics)

    Can someone help me?

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

The topic ‘Polylang and Advanced Custom Fields’ is closed to new replies.