Hallo,
ich bin ein totaler Anfänger und habe beim ZK ein Problem mit dem Footer;
es ist schwer zu erklären, deswegen habe ich eine technische Zeichnung angefertigt, die das Problem erklären sollte.
Tscha - hier ist der gesamte footercode:
PHP
<?php
function get_recent_posts($no_posts = 15, $before = '', $after = '<br>', $show_pass_post = false, $skip_posts = 0) {
global $wpdb, $tableposts;
$request = "SELECT ID, post_title FROM $tableposts WHERE post_status = 'publish' ";
if(!$show_pass_post) { $request .= "AND post_password ='' "; }
$request .= "ORDER BY post_date DESC LIMIT $skip_posts, $no_posts";
$posts = $wpdb->get_results($request);
$output = '';
foreach ($posts as $post) {
$post_title = stripslashes($post->post_title);
$permalink = get_permalink($post->ID);
$output .= $before . '<a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . $post_title . '">' . $post_title . '</a>' . $after;
}
echo $output;
}
?>
</td><td valign=top>
<table width=150 cellpadding=1 cellspacing=0 style="border:1px dashed #cccccc;"><tr><td bgcolor="#ffffff">
<table width=335 cellpadding=0 cellspacing=0><tr><td width=50% valign=top>
<table width=160 cellpadding=5 cellspacing=0><tr>
<td bgcolor="#ffffff" style="border: 1px dashed #cccccc;" valign=top>
<b>Kategorien</b><br>
<a href="<?php bloginfo('url'); ?>">Home</a><br>
<?php wp_list_cats('list=0'); ?>
</td></tr></table>
<br>
<div align="center"><a href="http://www.zahnarztkongress.beeven.de/?page_id=92">Ich</a> / <a href="http://www.zahnarztkongress.beeven.de/?page_id=252">Kontakt</a> / <a href="http://www.zahnarztkongress.beeven.de/?page_id=134">Archiv</a> / <a href="http://www.zahnarztkongress.beeven.de/?page_id=342">Impressum</a></div>
<br>
<table width=160 cellpadding=5 cellspacing=0><tr>
<td bgcolor="#ffffff" style="border: 1px dashed #cccccc;">
<form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
<b>Search</b><br>
<input type="text" class="input" name="s" id="search" size="15" onFocus='form.s.value=""' />
</form>
<table width=100% cellpadding=0 cellspacing=0><tr></form><td></td></tr></table>
</td></tr></table>
<br>
<table width=160 cellpadding=5 cellspacing=0><tr>
<td bgcolor="#ffffff" style="border: 1px dashed #cccccc;">
<b>Syndication</b><br>
<a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> 2.0'); ?></a><br>
<a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr> 2.0'); ?></a><br>
<a href="http://wordpress.org/" title="<?php _e('Powered by WordPress; state-of-the-art semantic personal publishing platform.'); ?>">WordPress</a>
</td></tr></table>
</td><td width=50% valign=top align=right>
<br>
<table width=160 cellpadding=5 cellspacing=0><tr>
<td align=left bgcolor="#ffffff" style="border: 1px dashed #cccccc;">
<b>Archiv</b><br>
<?php get_archives('','','','','<br>'); ?>
</td></tr></table>
<br>
<table width=160 cellpadding=5 cellspacing=0><tr>
<td align=left bgcolor="#ffffff" style="border: 1px dashed #cccccc;">
<b>Recent Entries</b><br>
<?php get_recent_posts(); ?>
</td></tr></table>
<br>
<table width=160 cellpadding=5 cellspacing=0><tr>
<td bgcolor="#ffffff" style="border: 1px dashed #cccccc;" align=center>
<td align=left bgcolor="#ffffff" style="border: 1px dashed #cccccc;">
<b>Nur Gutes</b><br>
<?php get_links(); ?>
</td></tr></table>
<br>
</body>
</html>
Alles anzeigen
Wenn jemand weiß, wie ich dem ein Ende setzen kann wäre das sehr, sehr kool! Dankschön :)
Gaaaanz viele Grüße