A page.php:
Kód:
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header(); ?>
<br />
<div class="classifiedtheme-content_single">
<h2 class="underlined"><?php the_title(); ?></h2>
<small><?php edit_post_link(__('Szerkeszt','cp'), '', ' | '); ?></small><br /><br />
<div class="entry">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
<?php comments_template(); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
A single.php:
Kód:
<h2 class="underlined"><?php the_title(); ?></h2>
<?php if($GLOBALS['page_type'] !="article" ){ ?>
<?php } ?>
<small><?php edit_post_link(__('Link szerkesztése','cp'), '', ' | '); ?> <?php the_time('Y. F j.'); ?> <?php comments_rss_link('» Hozzászólások RSS'); ?></small><br /><br />
<div style="line-height:24px;">
<p><b><?php the_excerpt() ?></b></p>
<?php $url = get_post_meta($post->ID, 'url', true); ?>
<a href="<?php echo $url; ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
<br />
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
</div>
</div>
<h2 class="underlined">Vélemények</h2>
<?php comments_template(); ?>
</div>
Könyvjelzők