Hallo zusammen, eine frohes neues Jahr!
Es geht um direkt um die Startseite von
http://www.timrodenbroeker.de .
Ich möchte sie gerne so einrichten, dass nur die Kategorie mit dem Namen "index", (bzw. Nr. "29") auf der Startseite angezeigt wird, dazu habe ich ein Tutorial auf Englisch gefunden, das allerdings nicht zum Erfolg geführt hat:
http://wordpress.org/support/topic/…home-page-index
Dies ist der Code aus meiner index.php:
PHP
<div id="hellohello">Willkommen!</div>
<?php
/*
Template Name: MyFrontPage
*/
?>
<?php get_header(); ?>
<?php
query_posts('category_name=<index>');
if (have_posts()) : ?>
<div style="height: 20px;"></div>
<div class="thumbs">
<ol>
<?php while ( have_posts() ) : the_post(); ?>
<div class="project">
<?php if ( has_post_thumbnail()) : ?>
<?php if (in_category( "20" )): ?>
<?php the_post_thumbnail(); ?>
<?php else: ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
<?php endif; ?><br>
</div>
<?php endwhile; ?>
</ol>
<?php else: ?>
<h2>No posts to display</h2>
<?php endif; ?>
</div>
<div style="clear: both;"></div>
<div class="nav"><p class="super"><?php posts_nav_link(' / ','Neuere Projekte','Ältere Projekte'); ?></p></div>
<?php get_footer(); ?>
Alles anzeigen
Kann jemand helfen? Das wäre super!