Need to take an advanced custom field textarea and display it in my template by breaking out each line separately. I want to wrap each line of the textarea with HTML, like an <li>
.
I’ve tried the following, but it’s just not working:
if (isset($instruction_textarea)){
$arry=explode( "rn", $instruction_textarea );
}
for ($i = 0; $i <= count($arry); $i++){
echo (trim($arry[$i])+"<br/>");
}
I would try something like this:
It should work.