Hallo,
ich hab den Codeschnipsel für das More tag auf Seiten in meine Page.php eingearbeitet, der der text wird auch ordentlich abgekürzt und "Weiterlesen" wird angezeigt, allerdings passiert absolut garnix wenn man darauf klickt... weiß einer woran das liegen kann?
Meine Page.php
PHP
<?php get_header(); ?>
<div class="art-content-layout">
<div class="art-content-layout-row">
<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
<div class="art-layout-cell art-content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="art-post">
<div class="art-post-body">
<div class="art-post-inner art-article">
<h2 class="art-postheader">
</a>
</h2>
<div class="art-postcontent">
<!-- article-content -->
<?php
global $more;
$more = 0;
?>
<?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry »', 'kubrick')); ?>
<?php if (is_page() or is_single()) wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<!-- /article-content -->
</div>
<div class="cleared"></div>
<?php $icons = array(); ?>
<?php if (!is_page()): ?><?php ob_start(); ?><?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && get_the_tags()): ?><?php ob_start(); ?><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
<div class="art-postfootericons art-metadata-icons">
<?php echo implode(' | ', $icons); ?>
</div>
<?php endif; ?>
</div>
<div class="cleared"></div>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
</div>
</div>
</div>
<div class="cleared"></div>
<?php get_footer(); ?>
Alles anzeigen