Zurück   WordPress Deutschland Forum > Support > Installation

Antwort
 
Themen-Optionen Ansicht
Alt 20.09.2008, 17:21   #11 (permalink)
PostRank: 0
 
Registriert seit: 19.09.2008
Beiträge: 7
Weil du es bist

post.php

PHP-Code:
<!-- uncomment the "by <?php the_author(); ?> to put the author's name on the post -->
<div class="post">
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink zu <?php the_title();?>"><?php the_title(); ?></a></h2>
<small>am <?php the_time('d. F Y'); ?> unter <?php the_category(', '); ?> abgelegt
<!-- von <?php the_author(); ?>--></small>
<div class="entry">
<?php the_content('...den ganzen Beitrag lesen &raquo;'); ?></div>

<p class="postmetadata">
<br>
<?php comments_popup_link(' kommentieren »''1 Kommentar »''% Kommentare »'); ?>
<!-- <?php edit_post_link('bearbeiten','','<strong>|</strong>'); ?> -->

</p>

<?php trackback_rdf(); ?>
</div>
Hmm die schleife müsste in der Archive.php drin bleiben, da sonst bei den einzelnen Kategorien ja gar nix erscheint. Als Startseite hab ich ne feste Seite und dann wird man auf eine spezielle Kategorie weitergeleitet...

Aber der Fehler kann ja nicht mehr fern sein.

Geändert von deutschrockt (20.09.2008 um 17:35 Uhr).
deutschrockt ist offline   Mit Zitat antworten
Alt 20.09.2008, 19:40   #12 (permalink)
PostRank: 0
 
Registriert seit: 19.09.2008
Beiträge: 7
PROBLEM IST GELÖST.
Ich habe einfach den Inhalt der post.php ind die Schleife in der archive.php eingefügt!

Das schaut nund so aus:

archive.php

PHP-Code:
<?php get_header(); ?>

<?php include (TEMPLATEPATH '/leftsidebar.php'); ?>

    <div id="content" class="narrowcolumn">

        <?php if (have_posts()) : ?>

         <?php $post $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php 
/* If this is a category archive */ if (is_category()) { ?>                
        
        
       <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
        <h2 class="pagetitle">Archiv f&uuml;r den <?php the_time('d. F Y'); ?></h2>
        
     <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
        <h2 class="pagetitle">Archiv des Monats <?php the_time('F Y'); ?></h2>

        <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
        <h2 class="pagetitle">Archiv des Jahres <?php the_time('Y'); ?></h2>
        
      <?php /* If this is a search */ } elseif (is_search()) { ?>
        <h2 class="pagetitle">Suchergebnisse</h2>
        
      <?php /* If this is an author archive */ } elseif (is_author()) { ?>
        <h2 class="pagetitle">Archiv nach Autoren</h2>

        <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
        <h2 class="pagetitle">Archive des Blogs</h2>

        <?php ?>



<?php while (have_posts()) : the_post(); ?>

<div class="post">
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink zu <?php the_title();?>"><?php the_title(); ?></a></h2>
<small>am <?php the_time('d. F Y'); ?> unter <?php the_category(', '); ?> abgelegt
<!-- von <?php the_author(); ?>--></small>
<div class="entry">
<?php the_content('...den ganzen Beitrag lesen &raquo;'); ?></div>

<p class="postmetadata">
<br>
<?php comments_popup_link(' kommentieren »''1 Kommentar »''% Kommentare »'); ?>
<!-- <?php edit_post_link('bearbeiten','','<strong>|</strong>'); ?> -->

</p>

<?php trackback_rdf(); ?>
</div>
<?php endwhile; ?>

        <div class="navigation">
            <div class="alignleft"><?php posts_nav_link('','','&laquo; &Auml;ltere Beitr&auml;ge'?></div>
            <div class="alignright"><?php posts_nav_link('','Neuere Beitr&auml;ge &raquo;',''?></div>
        </div>
    
    <?php else : ?>

        <h2 class="center">nicht gefunden</h2>
        <?php include (TEMPLATEPATH '/searchform.php'); ?>

    <?php endif; ?>
        
    </div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

Vielen Dank!
deutschrockt ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist aus.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:34 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 | Impressum | Ein Inpsyde.com Projekt