hi
das ist mein index php code
PHP
<?php
get_header();
?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="entry<?php if(is_home() && $post==$posts[0] && !is_paged()) echo ' firstpost';?>">
<!--<h2 class="entrydate">
<?php the_date() ?>
</h2> --> <h3 class="entrytitle" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark">
<?php the_title(); ?>
</a> </h3>
<div class="entrybody">
<?php
the_content(__('(درێژه*ی بابه*ته*كه*)'));
?> <div class="entrymeta">
<?php the_time('Y d F') ?> نێردراوه* بۆ <?php the_category(',') ?> <?php edit_post_link(__('<strong>ده*ستكاری</strong>')); ?>
</div>
<p class="comments_link">
<?php
$comments_img_link = '<img src="' . get_stylesheet_directory_uri() . '/images/comments.gif" title="comments" alt="*" />';
comments_popup_link(' بۆچوون نییه*', $comments_img_link . 'یه*ك بۆچوون', $comments_img_link . ' بۆچوون(%)');
?>
</p>
</div>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<?php comments_template(); // Get wp-comments.php template
endwhile; else: ?>
<p>
<?php _e('ببوره*. هیچ بابه*تێك نییه* بۆ نیشاندان'); ?>
</p>
<?php endif; ?>
<p>
<?php posts_nav_link(' — ', __('« په*ڕه*ی پێشوو'), __('په*ڕه*ی داهاتوو »')); ?>
</p>
</div>
<?php get_sidebar(); ?>
<!-- The main column ends -->
<?php get_footer(); ?>
Alles anzeigen
ich will in in Index.php nur Beiträge angezeigt werden die category ID 1.4.7 haben.
:)