Länkar hela koden för singel.php
<?php get_header(); ?>
<div id="padd-middle" class="padd-middle-single">
<div id="padd-middle-wrapper">
<div id="content">
<div id="content-wrapper">
<?php if (have_posts()) : ?>
<div class="post-group">
<?php while (have_posts()) : ?>
<?php the_post(); ?>
<div class="post post-single">
<div class="post-top"></div>
<?php
$padd_scrp = get_theme_root_uri() . '/' . PADD_THEME_SLUG . '/functions/thumb/thumb.php?';
$padd_image = '';
$padd_image_def = get_theme_root_uri() . '/' . PADD_THEME_SLUG . '/images/thumbnail-single.jpg';
$customfields = get_post_custom();
if (empty($customfields['paddimage'][0])) {
$padd_image = '';
} else {
$padd_image = $customfields['paddimage'][0];
}
if (empty($padd_image)) {
$imgpath = $padd_image_def;
} else {
$imgpath = $padd_scrp . 'src=' . $padd_image . '&w=' . PADD_POST_THUMB_W . '&h=' . PADD_POST_THUMB_H . '&zc=1';
}
?>
<div class="post-title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p><span class="categories">Categories: <?php the_category(', '); ?></span></p>
</div>
<div class="post-entry">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<p class="pages"><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
<?php
$desc = get_the_author_meta('description');
if (!empty($desc)) {
?>
<div class="post-box post-box-about-author">
<div class="post-box-title">
<h3>About the Author</h3>
</div>
<div class="post-box-interior">
<?php echo get_avatar(get_the_author_meta('email'),53) ?>
<p><?php echo $desc; ?></p>
<div class="clearer"></div>
</div>
</div>
<?php
}
?>
<div class="post-box post-box-sb">
<div class="post-box-title">
</div>
<?php
$padd_sb_url = urlencode(get_permalink());
$padd_sb_title = urlencode(get_the_title());
$padd_sb_notes = urlencode(strip_tags(padd_theme_get_content(250)));
$padd_img_path = get_theme_root_uri() . '/' . PADD_THEME_SLUG . '/images/icon-mini-%s.png';
?>
<div class="post-box-interior">
<ul>
<?php else : ?>
<div class="post-group">
<div class="post post-error">
<div class="post-title">
<h2>Not Found</h2>
</div>
<div class="post-entry">
<p>Sorry, no posts matched in your criteria.</p>
</div>
</div>
</div>
<?php endif; ?>
<?php get_sidebar(); ?>
<div class="clearer"></div>
</div>
</div>
<?php get_footer(); ?>
Ursäkta att det blev långt.
Jag försökte ta bort alla de Digg, twitter och kommentera som hamnar under och råkade väl ta bort något annat. Så nu har jag ingen anning vad jag ska göra.