orion833000

Рейтинг
5
Регистрация
10.04.2012

Не помогло... выводит опять все категории которые создаю и в правом сайдбаре и в горизонтальном меню...

Вот код файла sidebar.php Не пойму что здесь нужно отредактировать чтобы убрать вывод рубрик в горизонтальном меню...

<div class="sidecont rightsector">

<div class="sidebar">



<?php if(get_theme_option('video') != '') {
?>
<div class="sidebarvideo">
<ul> <li><h2 style="margin-bottom: 7px;">Популярное видео</h2>
<object width="271" height="240"><param name="movie" value="http://www.youtube.com/v/<?php echo get_theme_option('video'); ?>&hl=en&fs=1&rel=0&border=1"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/<?php echo get_theme_option('video'); ?>&hl=en&fs=1&rel=0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="271" height="240"></embed>
</object>
</li>
</ul>
</div>
<?php
}
?>

<ul>
<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>


<li><h2><?php _e('Недавние записи'); ?></h2>
<ul>
<?php wp_get_archives('type=postbypost&limit=5'); ?>
</ul>
</li>

<li><h2>Архивы</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>

<li>
<h2>Календарь</h2>
<?php get_calendar(); ?>
</li>

<?php wp_list_categories('hide_empty=0&show_count=1&depth=1&title_li=<h2>Рубрики</h2>'); ?>

<li id="tag_cloud"><h2>Теги</h2>
<?php wp_tag_cloud('largest=16&format=flat&number=20'); ?>
</li>


<?php include (TEMPLATEPATH . '/recent-comments.php'); ?>
<?php if (function_exists('get_recent_comments')) { get_recent_comments(); } ?>


<?php endif; ?>
</ul>



</div>
</div>

А что нужно сделать в этом файле чтобы не выводились рубрики еще и в горизонтальном меню?

awa, Спасибо тебе огромнейшее) помогло.Удалил вторую строчку что в твоем посте.Дубликат пропал... надеюсь навсегда.

Еще раз спасибо тебе мил человек)))

<?php $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true); ?>

<?php if (($thumb == '') && ($ebusiness_grab_image == 'on')) $thumb = catch_that_image(); ?>
<?php if($thumb !== '') { ?>

<a href="<?php the_permalink() ?>" title="<?php printf(__('Permanent Link to %s','eBusiness'), get_the_title()) ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumb; ?>&amp;h=<?php echo $ebusiness_thumbnail_size; ?>&amp;w=<?php echo $ebusiness_thumbnail_size; ?>&amp;zc=1&amp;q=<?php echo $ebusiness_thumbnail_quality; ?>" alt="<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>" class="thumbnail" /></a>
<?php } else { echo ''; } ?>

извиняюсь,но я не нашел этой опции...

а что делать с includes/thumbnail.php ?

Оставить только thumbnail.php ?

Извиняюсь за торможение,но я действительно не работал с вордпресс никогда.

<?php get_header(); ?>

<?php if (get_option('ebusiness_categories') == 'false') : ?>

<?php else : ?>

<div id="categories"> <img src="<?php bloginfo('template_directory'); ?>/images/categories-left-<?php echo $ebusiness_color; ?>.gif" alt="line" style="float: left;" />

<ul class="nav superfish" id="nav2">

<?php wp_list_categories("orderby=$ebusiness_sort_cat&order=$ebusiness_order_cat&include=$include_cats&title_li=&".$strdepth2); ?>

</ul>

<img src="<?php bloginfo('template_directory'); ?>/images/categories-right-<?php echo $ebusiness_color; ?>.gif" alt="line" style="float: left;" /> </div>

<?php endif; ?>

<div id="container">

<div id="left-div">

<?php if (get_option('ebusiness_integration_single_top') <> '' && get_option('ebusiness_integrate_singletop_enable') == 'on') echo(get_option('ebusiness_integration_single_top')); ?>

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<!--Begin Post-->

<div class="home-post-wrap-2">

<h1 class="titles"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permanent Link to %s','eBusiness'), get_the_title()) ?>">

<?php the_title() ?>

</a></h1>

<?php if (get_option('ebusiness_postinfo_posts') == 'false') : ?>

<?php else : ?>

<div class="post-info-wrap"> <img src="<?php bloginfo('template_directory'); ?>/images/home-title-2-left-<?php echo $ebusiness_color; ?>.gif" alt="home title" class="home-title-image" /> <span class="post-info"><?php _e('Posted','eBusiness') ?> <?php if (in_array('author', get_option('ebusiness_postinfo1'))) { ?> <?php _e('by','eBusiness') ?> <?php the_author_posts_link(); ?><?php }; ?><?php if (in_array('date', get_option('ebusiness_postinfo1'))) { ?> <?php _e('on','eBusiness') ?> <?php the_time(get_option('ebusiness_date_format')) ?><?php }; ?><?php if (in_array('categories', get_option('ebusiness_postinfo1'))) { ?> <?php _e('in','eBusiness') ?> <?php the_category(', ') ?><?php }; ?><?php if (in_array('comments', get_option('ebusiness_postinfo1'))) { ?> | <?php comments_popup_link(__('0 comments','eBusiness'), __('1 comment','eBusiness'), __('% comments','eBusiness')); ?><?php }; ?></span> <img src="<?php bloginfo('template_directory'); ?>/images/home-title-2-right-<?php echo $ebusiness_color; ?>.gif" alt="home title" class="home-title-image" /> </div>

<?php endif; ?>

<div style="clear: both;"></div>

<?php if (get_option('ebusiness_thumbnails') == 'false') { ?>

<?php { echo ''; } ?>

<?php } else { include(TEMPLATEPATH . '/includes/thumbnail.php'); } ?>

<?php the_content(); ?>

<?php if (get_option('ebusiness_integration_single_bottom') <> '' && get_option('ebusiness_integrate_singlebottom_enable') == 'on') echo(get_option('ebusiness_integration_single_bottom')); ?>

<?php if (get_option('ebusiness_foursixeight') == 'on') { ?>

<?php include(TEMPLATEPATH . '/includes/468x60.php'); ?>

<?php } else { echo ''; } ?>

<div style="clear: both;"></div>

<?php if (get_option('ebusiness_show_postcomments') == 'on') { ?>

<?php comments_template(); ?>

<?php }; ?>

<?php endwhile; ?>

</div>

<?php else : ?>

<!--If no results are found-->

<div class="home-post-wrap-2">

<h1><?php _e('No Results Found','eBusiness') ?></h1>

<p><?php _e('The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.','eBusiness') ?></p>

</div>

<!--End if no results are found-->

<?php endif; ?>

</div>

<!--Begin Sidebar-->

<?php get_sidebar(); ?>

<!--End Sidebar-->

<img src="<?php bloginfo('template_directory'); ?>/images/content-bg-<?php echo $ebusiness_color; ?>.gif" alt="line" style="float: left; margin-top: 15px;" /> </div>

<!--Begin Footer-->

<?php get_footer(); ?>

<!--End Footer-->

</body></html>

Пробовал убрать,убирается и картинка и миниатюра.Получается вообще пост без картинки.

Да я в них пока не понимаю вообще ничего.С вордпресом работаю только с неделю.Я только с Joomla работать умею).Мне нужно чтобы картинка с рамкой которая осталась а вторую убрать.Может кто нибудь посмотреть файлы шаблона?