przez KrzysDz
napisane: 6 Gru 2011, o 21:59
Witam ponownie.Niestety, ale jeszcze raz proszę o pomoc ponieważ robiłem tak jak opisywał it-splen (przynajmniej tak mi się wydaję, że wszystko zrobiłem tak jak miało być), ale nic to nie dało. Chyba,że coś przeoczyłem. Nie wiem czy to przejdzie, ale nie wiem jak wstawić screena więc wklejam kod mojej strony. Co jest nie tak?
"
<?php
/*
Template Name: Podstrona
*/
?>
<?php get_header(); ?>
<div id="wrap">
<div id="content">
<?php
$options = get_option('themezee_options');
if(is_home() and isset($options['themeZee_show_slider']) and $options['themeZee_show_slider'] == 'true') {
locate_template('/slide.php', true);
}
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="postmeta">
<div class="postmeta_links">
<?php the_author(); ?> |
<a href="<?php the_permalink() ?>"><?php the_time(get_option('date_format')); ?></a>
<?php edit_post_link(__( 'Edit', 'themezee_lang' ), ' | '); ?>
</div>
<div class="postcomments">
<a href="<?php the_permalink() ?>#comments"><?php comments_number(__('No comments', 'themezee_lang'),__('One comment','themezee_lang'),__('% comments','themezee_lang')); ?></a>
</div>
<div class="clear"></div>
</div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_post_thumbnail('thumbnail', array('class' => 'alignleft')); ?>
<?php the_content('<span class="moretext">' . __('Read more', 'themezee_lang') . '</span>'); ?>
<div class="clear"></div>
<?php wp_link_pages(); ?>
</div>
<div class="postinfo">
<?php _e('Category: ', 'themezee_lang'); the_category(', ') ?> |
<?php if (get_the_tags()) the_tags(__('Tags: ', 'themezee_lang'), ', '); ?>
</div>
</div>
<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { // if PageNavi is activated ?>
<div class="more_posts">
<?php wp_pagenavi(); ?>
</div>
<?php } else { // Otherwise, use traditional Navigation ?>
<div class="more_posts">
<span class="post_links"><?php next_posts_link(__('« Older Entries', 'themezee_lang')) ?> <?php previous_posts_link (__('Recent Entries »', 'themezee_lang')) ?></span>
</div>
<?php }?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>