Hi,
this part of code I added to index.php page
<h1 class="pagestitle"><?php echo(get_category_parents($cat, TRUE, ' ')); ?> české návody</h1>
<div id="vypis">
<?php
if (is_category()) {
$this_category = get_category($cat);
}
?>
<?php
if($this_category->category_parent)
$this_category = wp_list_categories('orderby=id&show_count=0
&title_li=&use_desc_for_title=1&child_of='.$this_category->category_parent.
"&echo=0"); else
$this_category = wp_list_categories('orderby=id&depth=1&show_count=0
&title_li=&use_desc_for_title=1&child_of='.$this_category->cat_ID.
"&echo=0");
if ($this_category) { ?>
-
<?php echo $this_category; ?>
<?php } ?>
</div>
in order ho have fine H1 and list at category page f.e. here
http://www.ceske-navody.net/bosch/
But it causes problem in search here:
http://www.ceske-navody.net/?s=bosch
Is there any way how to selve it? For example add some condition tha will restrict that part of code at search page?
Thanks in advance
Jan