Witam,

Mam problem, którego nie umiem rozwiązać. Otóż edytuję motyw arthemia wordpressa.

Chciałbym wykasować te trzy miejsca na stronie głównej oznaczone jako "Świeże, Ważne i przeglądaj kategorię". Gdy kasuję te elementy z kodu, strona przestaje działać. Proszę o pomoc.

Oto plik index.php Co usunąć żeby nie było tych trzech miejsc na stronie głównej?

Z góry dziękuję za pomoc!




  1. <?php get_header(); ?>
  2.  
  3. <?php if(!is_paged()) { ?>
  4.  
  5.  
  6.  
  7.  
  8.  
  9. <div id="top" class="clearfloat">
  10.  
  11. <div id="headline">
  12. <img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/headline.png" width="75px" height="21px" alt="" />
  13. <?php query_posts("showposts=1&category_name=Headline"); ?>
  14. <?php while (have_posts()) : the_post(); ?>
  15.  
  16. <div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
  17. <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('Brak komentarzy', 'Jeden komentarz', 'Komentarzy: %');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>
  18. <?php $values = get_post_custom_values("Headline");?>
  19. <a href="<?php the_permalink() ?>" rel="bookmark" title="Stały link do wpisu <?php the_title(); ?>">
  20. <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
  21. $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=300&h=275&zc=1&q=100"
  22. alt="<?php the_title(); ?>" class="left" width="300px" height="275px" /></a>
  23. <?php the_excerpt(); ?>
  24. <a href="<?php the_permalink() ?>" rel="bookmark" title="Stały link do wpisu <?php the_title(); ?>">Czytaj cały całość wpisu &raquo;</a>
  25. <?php endwhile; ?>
  26. </div>
  27.  
  28. <div id="featured">
  29.  
  30. <img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/featured.png" width="72px" height="17px" alt="" />
  31.  
  32. <?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?>
  33.  
  34.  
  35. <?php while (have_posts()) : the_post(); ?>
  36. <div class="clearfloat">
  37. <?php $values = get_post_custom_values("Image");
  38. if (isset($values[0])) { ?>
  39. <a href="<?php the_permalink() ?>" rel="bookmark" title="Stały link do wpisu <?php the_title(); ?>">
  40. <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
  41. $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=65&zc=1&q=100"
  42. alt="<?php the_title(); ?>" class="left" width="100px" height="65px" /></a>
  43. <?php } ?>
  44. <div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
  45. <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('Brak komentarzy', 'Jeden komentarz', 'Komentarzy: %');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>
  46.  
  47. </div>
  48. </div>
  49.  
  50. <?php endwhile; ?>
  51.  
  52. </div>
  53.  
  54. </div>
  55.  
  56. <div id="middle" class="clearfloat">
  57. <img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/category.png" class="clearfloat" alt="" />
  58. <?php $display_categories = array(5,6,7,8,11); $i = 1;
  59. foreach ($display_categories as $category) { ?>
  60.  
  61. <div id="cat-<?php echo $i; ?>" class="category">
  62. <?php query_posts("showposts=1&cat=$category")?>
  63. <span class="cat_title"><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></span>
  64. <a href="<?php echo get_category_link($category);?>"><?php echo category_description($category); ?></a>
  65. </div>
  66.  
  67.  
  68.  
  69. <?php $i++; ?>
  70. <?php } ?>
  71.  
  72. </div>
  73.  
  74. <?php } ?>
  75.  
  76. <div id="bottom" class="clearfloat">
  77.  
  78. <div id="front-list">
  79.  
  80. <?php
  81. $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
  82. query_posts("cat=-27,-28&paged=$page&posts_per_page=5"); ?>
  83.  
  84. <?php while (have_posts()) : the_post(); ?>
  85.  
  86. <div class="clearfloat">
  87. <h3 class=cat_title><?php the_category(', '); ?> &raquo</h3>
  88. <div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
  89. <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('Brak komentarzy', 'Jeden komentarz', 'Komentarzy: %');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>
  90.  
  91. <div class="spoiler">
  92. <?php $values = get_post_custom_values("Image");
  93. if (isset($values[0])) { ?>
  94. <a href="<?php the_permalink() ?>" rel="bookmark" title="Stały link do wpisu <?php the_title(); ?>">
  95. <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
  96. $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=150&h=150&zc=1&q=100"
  97. alt="<?php the_title(); ?>" class="left" width="150px" height="150px" /></a>
  98. <?php } ?>
  99.  
  100. <?php the_excerpt(); ?>
  101. </div>
  102.  
  103. </div>
  104.  
  105. <?php endwhile; ?>
  106.  
  107. <div class="navigation">
  108. <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  109. else { ?>
  110.  
  111. <div class="right"><?php next_posts_link('Następna strona &raquo;') ?></div>
  112. <div class="left"><?php previous_posts_link('&laquo; Poprzednia strona') ?></div>
  113. <?php } ?>
  114.  
  115. </div>
  116.  
  117. </div>
  118.  
  119.  
  120. <?php get_sidebar(); ?>
  121.  
  122. </div>
  123.  
  124. <?php get_footer(); ?>