Hallo alle zusammen,
nach vielem "Gefummel" habe ich es geschafft meine Website komplett auf Wordpress-Basis zu bauen mit meinem eigenen Design. Doch einige Sachen passen immer noch nicht :(
Mein großes Problem ist momentan mein Blog und die nicht funktionierende Blogfunktion. Die Seite ist diese: http://www.langholz-fotodesign.de/blog/
Das ist eine statische Seite sozusagen umgebaut, dass auf dieser die Blogbeiträge angezeigt werden. Viele Infos habe ich von texto z.B. und dann irgendwie zusammen geschustert. Ich habe wegen der Blätterfunktion schon zig Sachen gelesen und getestet, auch Plugins, aber nichts funktioniert.
Hier mal mein Code der Seite (bitte echt nicht zu kritisch sehen, php ist nicht mein Lieblingsthema):
<?php get_header(); ?>
<div class="textfeld">
<div id="main">
<div class="post">
<?php if (is_page('405')) { // ID der gewünschten Seite ?>
<?php
global $post;
$tmp_post = $post;
$args = array( 'numberposts' => 6);
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<table>
<tr>
<td width="200px">
<a href="<?php the_permalink() ?>" rel="top"><?php the_post_thumbnail(array( 300,150 ), array( 'class' => 'recent-thumbs' )); ?></a>
</td>
<td align=left><a href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title(); ?>"><?php the_title(); ?></a><br><br>
<?php global $more;
$more = 0;
the_content('Weiterlesen'); ?>
</td>
</tr>
</td>
<td>
<i>geschrieben am <?php the_time(__('l, d.m.y')) ?> <br></i>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a href="<?php comment_link(); ?>"><?php
$kommentare = 0;
$kommentare = $post->comment_count;
if($kommentare > 1) echo $kommentare." Kommentare";
elseif ($kommentare == 1) echo $kommentare." Kommentar";
else echo "keine Kommentare";
?></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td><br><br><br>
</td>
</tr>
</table>
<?php endforeach; $post = $tmp_post; ?>
<p align="center"><?php next_posts_link('« Ältere Einträge') ?> | <?php previous_posts_link('Neuere Einträge »') ?></p>
<?php get_sidebar('footer'); ?>
<?php } ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="entry">
<?php the_content(); ?>
</div>
<?php endwhile; endif; ?>
<?php $wp_query = null; $wp_query = $temp;?>
</div></div>
<!-- main -->
</div>
Alles anzeigen
unten dran hängt noch der Code von Piwik.
Kann mir da jemand helfen, wo hier das Problem liegt. Es wird einfach keine Blätterfunktion angezeigt, also die Links sind gar nicht da.