voltaic
Joined: 05 Jan 2004 Posts: 5 Location: The 9. 1. 6.
|
Posted: Mon Jan 05, 2004 8:29 pm Post subject: more, noteaser, and nextpage |
|
|
I found a bug in b2 0.6.2.2 for posts that use the more, noteaser, and nextpage tags all in one post. If you have a post with all three of these, any pages after page 1 won't display (although the page navigation will show up fine).
The fix is simple: open up b2template.functions.php and find the function called get_the_content(). Inside this function is the line:
Code: | if (($more) && ($stripteaser)) |
Change this line to:
Code: | if (($more) && ($stripteaser) && ($page==1)) |
And you're all set!
You can see multiple examples of this at the newest b2-powered site on the net, DIY Games, the premiere source for independent gaming news on the net. We run a heavily modified version of b2 but I think you'll like it. We do! Thanks to Michel for writing some great code! |
|