more-tag not working on custom page
-
Hi there!
I guess this is an old topic but i just can′t find a solution for this problem.
I want to force the more tag to work on a custom page and already found this workaround: global $more; $more = 0;
It shows the more link but nothing happens when i click on it?
The URL changes: “#more-11” is being added.This is all the code i′m using for this custom site:
<div id="content"> <?php if ( have_posts() ) while ( have_posts() ) : the_post();?> <!-- <?php global $more; $more = FALSE; ?> --> <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {the_post_thumbnail();} ?> <div id="content-text"> <?php force_more(); the_content(__('mehr lesen'));?> </div> <?php $more = TRUE; ?> <?php endwhile; ?> </div><!-- end of #content --> <?php function force_more() { global $more; $more = 0; }?>
Am i missing something? Sorry if my english is a bit weird ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘more-tag not working on custom page’ is closed to new replies.