View Full Version : php correction on my webpage

10-16-2012, 12:18 PM
Hopefully someone can help me.

Please visit my testpage here: http://www.rabatt-auf-fonds.de/?page_id=1173

The problem was, that I want to display my latest wordpress postings on the starting page left in a div-container.

I solved the problem with a wordpress plugin named "PHP Code for posts" and following code:

<?php if (is_page('1221')) {?>
$lastposts = get_posts('showposts=5');
foreach($lastposts as $post) :
<h2><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Weiterlesen...</a>
<?php endforeach; ?>
<?php } ?>

Now the style does not work realy good and the link for "Weiterlesen" does not bring me to the post.

Please help me:

1. The button "Weiterlesen" should border on the [...]
2. The word "test" isnīt correct. Here should stand the name of the post.

It would be great when somebody can help me here. With php Iīm absolutly unskilled...

Thanks in advance!