<!–more–> teaser doesn’t work on 2.9.2
-
I have made a theme with multiple loops in the homepage. I has worked perfectly <https://ecmeurope.net> until I have installed a new blog with wordpress 2.9.2 and this theme <https://azimuth-qsm.com/>. Now the teaser
<!--more-->
doesn’t work:the_content('Read more ?');
displays the whole content, not only the text before the<!--more-->
tag.Can you help me solve this problem? Thank you very much.
Here’s the code of Main Index Template (index.php):
<?php get_header(); ?>
<div id=”content” class=”home”>
<div id=”left_column”>
<div class=”portlet” id=”about”>
<?php
$about = new WP_Query(‘page_id=17’);
while ($about->have_posts()) : $about->the_post(); update_post_caches($posts);
?>
<h2>” rel=”bookmark” title=”<?php _e(‘Permanent Link to’, ‘kubrick’); the_title(); ?>”><?php the_title(); ?></h2>
<div class=”body”>
<?php
the_content(‘Read more ?’);
edit_post_link(__(‘Edit this page’, ‘kubrick’), ‘<p>’, ‘.</p>’);
?>
</div><!– /.body –>
<?php
endwhile;
rewind_posts();
?>
<div class=”footer”></div>
</div><!– /.portlet –>
<p id=”rrg”>/?page_id=22″><img src=”<?php bloginfo(‘template_directory’); ?>/media/images/rrg-order.gif” alt=”<?php _e(‘[:en]Regulatory Reference Guide: order your copy online.[:it]Regulatory Reference Guide: ordina online la tua copia.”‘); ?> /></p>
<p id=”socio_uni”>“><img src=”<?php bloginfo(‘template_directory’); ?>/media/images/socio_uni.gif” alt=”<?php _e(‘[:en]Member of UNI.[:it]Socio UNI.’); ?>” /></p>
</div><!– /#left_column.home –>
<div id=”right_frame”>
<p id=”homepage_image”><img src=”<?php bloginfo(‘template_directory’); ?>/media/images/homepage_image.jpg” alt=”<?php _e(‘[:en]The picture of some ships with a beautiful sunset in background.[:it]Una fotografia con alcune navi illuminate da una splendida alba.’); ?>” /></p><!– /#homepage_image –>
<div id=”center_column”>
<p id=”ecm_agent”><img src=”<?php bloginfo(‘template_directory’); ?>/media/images/ecm_agent.gif” alt=”<?php _e(‘[:en]ECM Maritime Services LLC Agent in Europe[:it]Il tuo agente ECM Maritime Services LLC in Europa’); ?>” /></p><!– /#ecm_agent –>
<div id=”latest_news” class=”posts_list”>
<h1><?php _e(‘Latest news’, ‘kubrick’); ?></h1>
<?php include (TEMPLATEPATH . ‘/navigate_posts.php’); ?>
<?php
while (have_posts()) : the_post();
?>
<div class=”post hentry” id=”post-<?php the_ID(); ?>”>
<h1 class=”entry-title”>” rel=”bookmark” title=”<?php printf(__(‘Permanent Link to %s’, ‘kubrick’), the_title_attribute(‘echo=0’)); ?>”><?php the_title(); ?></h1>
<p class=”postmetadata”><span class=”published”><?php the_date(__(‘j/m/Y’, ‘kubrick’)); ?></span><?php edit_post_link(__(‘Edit’, ‘kubrick’), ‘, ‘, ”); ?></p><!– /.postmetadata –>
<div class=”entry entry-summary”>
<?php the_content(__(‘Read more »’, ‘kubrick’)); ?>
</div><!– /.entry –>
</div><!– /.post –>
<?php
endwhile;
if (have_posts()) {
?>
<ul class=”nav_posts”>
<li class=”previous”><?php next_posts_link(__(‘<img src=”https://ecmeurope.net/wp-content/themes/ecmeu/media/images/arrow_l-12x15px.gif” alt=”←” title=”Older entries” />’, ‘kubrick’)) ?>
<li class=”archive” title=”<?php _e(‘All news’, ‘kubrick’); ?>”>/news/”>News archive
<li class=”next”><?php previous_posts_link(__(‘<img src=”https://ecmeurope.net/wp-content/themes/ecmeu/media/images/arrow_r-12x15px.gif” alt=”→” title=”Newer entries” />’, ‘kubrick’)) ?>
<!– /.nav_posts –>
<?php
}
?>
</div><!– /#latest_news –>
</div><!– /#center_column –>
<div id=”right_column”>
<p id=”slogan”><img src=”<?php bloginfo(‘template_directory’); ?>/media/images/homepage_slogan.png” alt=”<?php _e(‘You consult, We resolve’,’kubrick’); ?>” /></p>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘homepage’) ) : endif;//Widgetized sidebar, if you have the plugin installed. ?>
</div><!– /#right_column –>
</div><!– /#right_frame –>
</div><!– /#content –>
<?php get_footer(); ?>
- The topic ‘<!–more–> teaser doesn’t work on 2.9.2’ is closed to new replies.