<ul id="playlist">
<div class="col-lg-3 text-center grid-list" id="grid-list">
<div>
<img src="<?php the_post_thumbnail_url(); ?>" class="grid-img">
</div>
<li><?php the_title();?></li>
</div>
<ul>
i used this code to get the initial info
initList($('#playlist li:first-child'));
but since the client decided to make it grid list i dont know how to revised it when it is inside a div
. http://stackoverflow.com/questions/11755628/can-i-use-div-as-a-direct-child-of-ul
– XYZ Jan 27 '17 at 05:04