How can I convert a list of title-posts into a sequence of comma separated text? [closed]
If you want to keep them all within one outer <li>, you can use something like this. Instead of echoing them immediately, save them to an array, then loop through the array. <?php if ($autores->have_posts()): echo ‘<li>’; // create an empty array $autoresArray = array(); while($autores->have_posts()): $autores->the_post(); // save the link and name $autoreLink = … Read more