Hello,
I am using a wordpress plug in and have a problem. I want the output of an array to NOT be in a list but in a straight line (no line breaks just a pipe and space | ) the developer has been less than helpful. He keeps telling me to remove the
but I have no clue as there are no
s. Am I right in assuming that the “foreach” function only outputs in a list?
Here is the code:
function tp_widget_do($args) {
echo “<div class=”" . NO_TRANSLATE_CLASS . " transposh_flags" >";
foreach ($args as $langrecord) {
echo “<a href=”{$langrecord[‘url’]}"" . ($langrecord[‘active’] ? ’ class=“tr_active”’ : ‘’ ) . ‘>’ .
transposh_utils::display_flag(’’, $langrecord[‘flag’], $langrecord[‘langorig’], true) . ‘’;
echo “<a href=”{$langrecord[‘url’]}"" . ($langrecord[‘active’] ? ’ class=“tr_active”’ : ‘’ ) . ‘>’ . “{$langrecord[‘langorig’]}
”;
}
echo “”;
}
Thnakyou so much for any help.