Das ist richtig. Nur ist daraufhin "index" in den einzelnen Seiten ausgelesen worden und die Seiten waren nach vor noch zu finden.
Ich gehe sehr stark davon aus, dass du das ganricht so einfach beantworten kannst - vielleicht weil du weißt, was dann noch so kommen könnte.
Ich kriege die Krise.
Wenn ich neu aufsetze:
lege ich Wordpress in ein Unterverzeichnis,
ändere die Struktur der Permalinks und schaue bei der Erstellung nach der Page ID(Page ID = Teil der Überschrift / komplette Überschrift = H2) soweit verstehe ich den Sinn. Und dann soll doch einfach nur der letzte Artikel/Text und das Blog/die Seite auf dem Frontend unter meiner Domain zu erkennen sein.
Sorry, dass ich ein bissle gefrustet bin - aber der Code meines ganzen Themes ist Scheiße :p:-( Ich verstehe zwar ein bisjen was von html und css aber so gut wie nichts von php.
Das ist der Code der neuen header.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<style type="text/css" media="screen">
<?php if ( is_home() || is_front_page() ) {
echo "<meta name=\"robots\" content=\"noindex,nofollow,noodp\" >";
} else {
echo "<meta name=\"robots\" content=\"index,follow,noodp\" >";
} ?>
<?php
// Checks to see whether it needs a sidebar or not
if ( !empty($withcomments) && !is_single() ) {
?>
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
<?php } ?>
</style>
<?php wp_head(); ?>
</head>
<body>
<div id="container">
<div id="header">
<ul id="pages_custom">
<?php wp_list_pages('title_li=&depth=1' ); ?>
</ul>
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<div class="description"><?php bloginfo('description'); ?></div>
</div><!-- header ends -->
<?php get_sidebar(); ?>
Alles anzeigen
Das der Code der neuen index.php
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="postHeading">
<div class="postDate">
<p><?php the_time('M') ?></p>
<p class="day"><?php the_time('j') ?></p>
<p><?php the_time('Y') ?></p>
</div><!-- post date ends -->
<div class="postTitle">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
</div><!-- post title ends -->
</div><!-- post heading ends -->
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Veröffentlicht in <?php the_category(', ') ?> | <?php edit_post_link('Bearbeiten', '', ''); echo(" |"); ?> <?php comments_popup_link('Keine Kommentare »', '1 Kommentar »', '% Kommentare »', 'Kommentare'); ?></p> </div>
</div>
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
Alles anzeigen