Hallo zusammen!
Ich habe nun eine Frage:
Ich habe ein Theme heruntergeladen. Ich muss sagen, es konnte nicht besser beine Vorstellungen wiederspiegeln!
Nun habe ich alles für meine Bedürfnisse angepasst, aber der letzte Schritt will mir nicht gelingen... (Darf man ein anderes Theme überhaupt anpassen?)
Am besten schildere ich mein Problem, indem ich jetzt diese URL (http://www.schoool2a.pytalhost.de/wordpress/?cat=5) gebe. Ich möchte, dass das
Abgelegt unter 'Chemie'
25.09 Kapitel 5.3 bis 6.3 von Luca abgelegt unter Chemie
ganz links am Rand ist und nicht in der Mitte. Unten habe ich den Code, werde aber daraus nicht schlau... Habe ihn schon mal verändert, da ich die Archiv Info nicht auf der Seite haben will (befand sich im linken, leeren Feld)
Original-Code von archive.php:
<?php
get_header();
?>
<div id="searchresult">
<?php if (have_posts()) : ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2>Abgelegt unter '<?php echo single_cat_title(); ?>'</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2>Artikel vom <?php the_time('j. F Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2>Archiv vom <?php the_time('F Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2>Artikel aus dem Jahr <?php the_time('Y'); ?></h2>
<?php } ?>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li><span class="date"><?php the_time('d.m') ?></span> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
abgelegt unter
<?php the_category(', ') ?></li>
<?php endwhile; ?>
</ul>
<div class="navigation">
<div class="left"><?php next_posts_link('<span>«</span> Vorherige Artikel') ?></div>
<div class="right"><?php previous_posts_link('Folgende Artikel <span>»</span>') ?></div>
<div class="clear"></div>
</div>
<?php else : ?>
<p><?php _e('Leider keine Artikel nach diesen Kriterien.'); ?></p>
<?php endif; ?>
</div>
<div id="infomenu">
<h2>Archiv Info</h2>
<p><?php
$numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
if (0 < $numposts) $numposts = number_format($numposts);
$numcats = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->categories");
if (0 < $numcats) $numcats = number_format($numcats);
?>
<?php printf(__('Zur Zeit gibt es %1$s Artikel in %3$s Kategorien. Have fun!'), $numposts, 'edit.php', $numcats, 'categories.php'); ?>
</p>
</div>
</div> <!-- closes container -->
<?php include(TEMPLATEPATH . '/bottombar.php') ?>
<?php get_footer(); ?>
Alles anzeigen
Veränderter Code von archive.php:
<?php
get_header();
?>
<div id="searchresult">
<?php if (have_posts()) : ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2>Abgelegt unter '<?php echo single_cat_title(); ?>'</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2>Artikel vom <?php the_time('j. F Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2>Archiv vom <?php the_time('F Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2>Artikel aus dem Jahr <?php the_time('Y'); ?></h2>
<?php } ?>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li><span class="date"><?php the_time('d.m') ?></span> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
abgelegt unter
<?php the_category(', ') ?></li>
<?php endwhile; ?>
</ul>
<div class="navigation">
<div class="left"><?php next_posts_link('<span>«</span> Vorherige Artikel') ?></div>
<div class="right"><?php previous_posts_link('Folgende Artikel <span>»</span>') ?></div>
<div class="clear"></div>
</div>
<?php else : ?>
<p><?php _e('Leider keine Artikel nach diesen Kriterien.'); ?></p>
<?php endif; ?>
</div>
</div> <!-- closes container -->
<?php include(TEMPLATEPATH . '/bottombar.php') ?>
<?php get_footer(); ?>
Alles anzeigen
Gibt's da eine Möglichkeit?
Danke schon im Vorraus
MfG
El-Q