I know! There is no li tags in my list so I get this error. But here is the thing. I have horisontal quick gallery on my site. It is a jquery plugin named jCarusel. This code fills images in li tags. So, this all work perfectly fine but I can't validate my page becouse it sais that ul is not finished. When I check source code of my page I only see:
Code:
<ul id="mycarousel" class="jcarousel-skin-moja">
</ul>
If I check with firebug than I can see that li elements are there. I tryed to add one li tag before I call function to generate images, but then no images shows. How can I add li tag so that the browser, validator will see li inside ul. As I said, if I add li in ul before I call function for pictures, I get no results.
This is plugin that I use. I can see that the same error occures when I validate this page.
http://sorgalla.com/projects/jcarous..._ajax_php.html
Thank you
PHP Code:
<div id="quickGallery">
<ul id="mycarousel" class="jcarousel-skin-moja">
<?php
//Preverimo ali je morda prikazana galerija. Ce je prikazana galerija, potem odstranimo hitro galerijo.
function wt_get_ID_by_page_name($page_name)
{
global $wpdb;
$page_name_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_title = '".$page_name."'");
return $page_name_id;
}
global $post;
$id = $post->ID;
$id_gallery = wt_get_ID_by_page_name('Galerije');
trim($id_gallery);
if($id != $id_gallery)
{
// content of picture slider goes here
}
?>
</ul>
</div>