Wyświetlanie danej kategorii
-
Chciałbym zrobić aktualności, ale chcę by wyświetlały się tylko określone kategorie, np kategoria „luty”
W pliku index.php mam:
<a href="<?php the_permalink(); ?>"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'single-post', array('class' => 'entry-thumb') ); } ?> </a> <?php the_content('czytaj dalej'); ?> <div class="clear"></div> </div> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?>
Wynik jest taki że wyświetla wszystkie wpisy, jak to zmianić by wyświetlał tylko kategorię „luty” ?
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- Temat ‘Wyświetlanie danej kategorii’ jest zamknięty na nowe odpowiedzi.