*push* :cry:
Beiträge von Bänny
-
-
Hio!
Also; Eine single.php hab ich, nur keine archive.php!
Soll ich mit dem Inhalt der index.php einfach eine archive.php erstellen?
Hier noch die index:
PHP
Alles anzeigen<?php get_header(); ?> <style type="text/css"> <!-- .Stil1 { color: #FF0000; font-weight: bold; } --> </style> <div id="container"> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="post_header"> <div class="the_date"> <div class="date_m"><?php the_time('M') ?></div> <div class="date_d"><?php the_time('jS') ?></div> </div><!-- the_date --> <div class="post_headerr"> <div class="post_title"> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> </div> <div class="details"> <span class="files"><?php _e('Files under'); ?> <?php the_category(', ') ?></span> | <span class="comment_list"><?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> </span> </div> </div><!-- post_headerr --> </div><!-- post_header --> <div class="entry"> <?php the_content(); ?> <p class="postmetadata"><?php edit_post_link('| Edit', '', ' | '); ?><?php _e('Posted by'); ?> <?php the_author(); ?> | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> | <?php if(function_exists('the_views')) { the_views(); } ?> </div> </div> <?php endwhile; ?> <div class="navigation"> <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?> </div> </div> <?php else : ?> <div class="post"> <h2><?php _e('Not Found'); ?></h2> </div> <?php endif; ?></div> <?php get_sidebar(); ?> <?php get_footer(); ?>gratz
-
Hiho!! =)
Ich habe ein Problem mit meinem Blog, un zwar versuche ich die Letzten Artikel in den Content zu bekommen und die Beiträge weg zubekommen.
Ich hatte auch schon ein "script" gefunden, doch leider bekomme ich es nicht eingepasst, und gefallen tut es mir auch nicht wirklich, da ich die Beschreibung gerne weghaben möchte.
PHP
Alles anzeigen<?php $limit=5; $more=1; $count=1; if (empty($wp)) {require_once('wp-config.php'); wp('feed=rss');} if ($posts) { foreach ($posts as $post) { start_wp(); ?> <ul> <li><a href="<?php permalink_single_rss() ?>" title="PermaLink to <?php the_title_rss() ?> Article"><?php the_title_rss() ?></a> <div class="small"> <?php the_time('l, F jS, Y') ?></div> <?php the_excerpt() ?> </li> </ul> <?php $count++; if ($count > $limit) { break; } } } ?>Zudem noch: Ich benutze das Theme o2 2.0.
Der geschriebene Content sollte weg sein und ungefähr so sollte es aussehen:
8.11
- Thema #1
- Thema #2
- Thema #2
...usw7.11
- Thema #1
- Thema #2
- Thema #3
...usw
Eine Liste der Letzten Artikel sozusagen :-DHoffe das mir dabei einer Helfen kann...
Grüße Benny
http://blog.eches.net/themes/o2-20-w…-be-downloaded/