Please Check This 20 Lines Of PHP Code
Here's the code
---------------------------------------------------------------------
<?php if (is_category()) {
$this_category = get_category($cat);
if (get_category_children($this_category->cat_ID) != "") {
echo "<ul>";
wp_list_categories('orderby=id&depth=1&show_count= 0&title_li=
&use_desc_for_title=1&child_of='.$this_category->cat_ID);
echo "</ul>";
}
}
else{
<ul>
<?php
$post;
$myposts = get_posts('category=$this_category->cat_ID&numberposts=1000&order=asc');
foreach ($myposts as $post) : setup_postdata($post);
?>
<li><a href="<?php the_permalink();?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
}
?>
--------------------------------------------------------------------------
It's just 20 Lines and I checked at several online Checkers which say that there's a parse error in the ELSE LOOP
I can 't seem to figure out what may that be?
Can anybody help??
Thanks in advance
Bhupinder
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."
My Business site: WarMarks - Web Development | My Personal Blog: Mohsin Rasool