<div class="home-description">
<?php the_content() .
echo "<a class='read-more' href=".
echo get_bloginfo('url').
echo "/about-us>".
echo "more</a>"
?>
</div>
它不工作!请帮忙...
它应该是这样的
<div class="home-description">
<?php echo the_content() .
'<a class"mread-more" href="'.
get_bloginfo('url') .
'/about-us">more</a>';
?>
</div>
<?php
echo<<<_HTML
<a class='read-more' href="somepage.html">More</a>
_HTML;
?>
我认为这会帮助你:
<div class="home-description">
<?php the_content() ?>
<a class='read-more' href="<?php echo get_bloginfo('url');?>/about-us>">more</a>
</div>
写这段代码
<?php the_content(); ?>
<a href="<?php the_permalink(); ?>">Read more...</a>