- implode: documentation ( source)
- str_replace: documentation ( source)
- explode: documentation ( source)
<?php
$atts['home_blog_id'] ="post:du-an,post:tin-tuc";
$id = $atts['home_blog_id'];
$slug = str_replace( array('post:','post'), array('',''), $id);
Echo "<li>" . implode("</li><li>", explode(",", $slug)) . "</li>";