We need a code that works on Frech language page.
The code we have work on English pages. You would need to revised PHP code that works on both English and French pages based on the code we provide. Please see code below.
<?php if( have_rows('catergories') ): $catergorie_credits = array(); ?>
<?php $x=0; while( have_rows('catergories') ): the_row(); $x++; if ($x > 3) { break; } ?>
<?php the_sub_field('content'); ?>
<?php $catergorie_credits[] = get_sub_field('name');?>
<?=$bb[$x];?>"><?=get_sub_field('name');?>
<?php endwhile; ?>
<?php endif; ?>
<?php $x=0; ?>
<?php foreach ($catergorie_credits as $credit) { $x++; ?>
<?=$bb[$x];?>"><?=$credit;?>
The code below works on hard-coded sections for both English and French language pages. We need the above code to work based on the language of the page.
<?php if ( ICL_LANGUAGE_CODE=='fr' ) { echo 'French Text goes here.'; }
elseif ( ICL_LANGUAGE_CODE=='en' ) { echo 'English text goes here.'; }
?>
catergories (english content)
catergories-fr (french content)
//** READY TO START RIGHT AWAY AND FINISH IN NEXT 4 HOURS **//
More then 5+ years of experience in Development . Also kindly check our profile we have done over 250 project here on freelancer so very much reliable & fit for your project . Kindly initiate chat.
Dear sir
I have good experience with WordPress developments and bug fixings, i can able to fix this issue with wpml and acf, if you can send ftp or cpanel and wordpress site logins , i can start the work from now
Regards
Suneth
Hello/Bonsoir
I'm not sure why you are getting into complicated solution. There is much easier option to redirect the site according to the language, unless it's something else.
Please contact me by chat if possible because I can help you to solve this easily.
Best Regards.
P.S: I speak French :)
I have good experience with Divi themes and can definitely help you for long term for WordPress development. Yes, I am into Front-end too which includes expertise in UI/UX Mockup designing and more.
I am a professional WordPress developer. Specifically I have good amount of experience in using WordPress premium themes and plugins. I have worked with Woocommerce at expert level.
I have 5 years of experience with WordPress and successfully delivered many small level website to large level web applications using WordPress.
Thanks
vicky sharma