I don’t really know php well but I’m pretty sure you have either an extra endwhile or endif, probably the endif since you have no “if” statement in there, although you do have a “while” statement.
Nope. Code is find when I remove the <–nextpost–> π
Have you reviewed the offending plugin exec-php? Also a post has a max size on servers (set in php.ini normally) review that.
The post isn’t very big and the problem specifically occurs with the <–nextpost–> tag (if I tell it to print something it works fine).
What happens if you deactivate the plugin?
Wouldn’t the php code stop working if I deactivate it?
Wouldn’t the php code stop working altogether if I deactivate it?
If using this plugin in the plugin gallery notes:
Requires: 2.0.11 or higher
Compatible up to: 2.8
Last Updated: 2009-1-7
You’re not running 2.8 or less also are you?
http://codex.wordpress.org/Function_Reference/wp_link_pages
I’m running 3.2
Forgot to keep thanking you for your time and effort btw π
I think it’s a conflict with that plugin and now ‘built in’ shortcodes.
But if I replace it with the <!–More–> tag I don’t get an error
They are not the same…it won’t hurt to deactivate the old plugin and see happens to rule out that is the issue.
what does exec php do? I never realized <!–nextpage–> worked in php code, thought it was a kind of shortcode for the post editor.
Maybe you need something like:
<?php
$limit = get_option('posts_per_page');
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('showposts=' . $limit . '&paged=' . $paged);
$wp_query->is_archive = true; $wp_query->is_home = false;
?>
It’s supposed to limit posts per page in a query and add the pagnation. I intend to try it myself asap.
Hi deepbevel
Thanks for your reply.
exec php lets you use php code in your wysiwyg editor and I’ve never had problems with it.
I am trying to separate a large list into several pages so I am only dealing with one post.