Jan
23
comment php implode internationalization
although my problem was solved with SDC's solution, I will try your solution anyway. Thanks!
Jan
23
comment php implode internationalization
Thanks again, and yes, I will update the php version. Regards.
Jan
22
accepted php implode internationalization
Jan
18
awarded Commentator
Jan
18
comment php implode internationalization
Indeed I'm running it on PHP Version 5.3.1 and despite a missed Parenthesis on the code it works perfectly! Thanks so much! Here you can find the code chunk that works for me (also added a separator for every item): echo implode(', ', array_map(function($e) {return __($e,'my-text-domain');},$joblanguages)); Thanks so much everyone!
Jan
17
comment php implode internationalization
array(2) { [0]=> string(7) "English" [1]=> string(7) "Chinese" }
Jan
17
comment php implode internationalization
Thanks for the code, but still get a warning message: Warning: explode() expects parameter 2 to be string, array given in /Applications/XAMPP/xamppfiles/htdocs/vemas-2012/wp-content/themes/vemas-2012/content-careers-single.php on line 80 Warning: implode() [function.implode]: Invalid arguments passed in /Applications/XAMPP/xamppfiles/htdocs/vemas-2012/wp-content/themes/vemas-2012/content-careers-single.php on line 80
Jan
17
comment php implode internationalization
@povilasp You are right. But there's a way to show the translated values in a comma separated string?
Jan
17
comment php implode internationalization
@hsz it's returning the original language values, not the ones from the chosen language.
Jan
17
asked php implode internationalization
Dec
13
awarded Supporter
Dec
13
comment php echo in one line
Thanks Wesley! The problem was that the function, as you said, was echoing instead of returning. Now works like a charm!
Dec
13
accepted php echo in one line
Dec
13
awarded Editor
Dec
13
revised php echo in one line
added 207 characters in body
Dec
13
asked php echo in one line
Oct
24
awarded Editor
Apr
10
comment Include captions
Hello kaiser, it seems that the solution I found duplicated some images randomly :( Also, using wp_get_attachment_metadata(), the caption displayed was the one from the Exif file, not from the Media Library item. Will try to find the solution and will be posted here. Regards.
Apr
2
accepted Enqueue script on every page except one
Apr
2
accepted Include captions
1 2 3