Hallo, ich bin ein ziemlicher Anfänger was PHP und CSS angeht.
Habe mir aber vor kurzem mal Wordpress von meinem Hoster installieren lassen und nun einige Templates ausprobiert.
Meine Seite: 360gradshizo.de
Letzten Ende bin ich bei Dirtylicious 1.0 von [COLOR=#2583ad]Viktor Persson[/COLOR] hängen geblieben.
Jetzt zu meinem Problem:
Ich habe auf Home meinen Blog, habe mit dem Plugin [COLOR=#2583ad]Advanced Category Excluder[/COLOR] eine bestimmt Kategorie der Home ausgeschlossen.
Diese Kategorie (Rezepte) möchte ich nun auf einer neu erstellten Seite (ebenfalls Rezepte) anzeigen lassen, wie es im Blog auch angezeigt werden würde.
Hier meine Index.php
PHP
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
<div class="descr"><?php the_time('F jS, Y') ?> by <?php the_author() ?></div>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="info">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit','',' |'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php comments_template(); ?>
<?php endwhile; ?>
<p align="center"><?php next_posts_link('« Previous Entries') ?> <?php previous_posts_link('Next Entries »') ?></p>
<?php else : ?>
<h1>Not Found</h1>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<div class="clearer"> </div>
</div>
<?php get_footer(); ?>
Alles anzeigen
und hier meine page.php
PHP
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h1><?php the_title(); ?></h1>
<div class="descr"><?php the_time('F jS, Y') ?> by <?php the_author() ?></div>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<h2 align="center">Not Found</h2>
<p align="center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<div class="clearer"> </div>
</div>
<?php get_footer(); ?>
Alles anzeigen
Ihr könnt mir hierbei sicher weiter helfen.