Next-Previous Page?
-
Hello,
Some of my articles are multi pages, so I need visitors to see page numbers in order to follow or read through multi pages. Any plugin or codes for the above? Yes, I have seen several posts in this forum, but they are outdated and not helping.
Example: http://patrimoineacadien.com/?p=24
Thanks for your support and patience.
WorrypasCanada.
-
Thanks for clarifying Mosey! I apologize for not being more clear about the structure.
This is the structure that I have:
wp-content/plugins/pagepost:
bigint.php
compat.php
dhparams.php
innerhtml.js
language.php
pagepost.css
pagepost.js.php
pagepost.php
phprpc_client.js
phprpc_server.php
rpc.php
xxtea.phpwp-content/plugins/pagepost/dhparams:
1024.dhp
128.dhp
1536.dhp
160.dhp
192.dhp
2048.dhp
256.dhp
3072.dhp
4096.dhp
512.dhp
768.dhp
96.dhpWhat should I do next with the issue of multipages? You guys are very patient. Thanks.
Cinematic:
I have modify per your suggestion, with pagepost plugin deactivated… no success to resolve issue:
<!--page:[page 1]--> <h3>heading</h3> <p>some content</p> <p>some more content</p><!--page:[page 2]--> <h3>heading</h3> <p>some content</p> <p>some more content</p>etc.
Not many solutions left, I suppose. Thanks.
Hi worrypascanada,
why did you deactivate pagepost? If you deactivate the plugin then of course it won’t work .. 🙂It needs to be activated otherwise it won’t recognize the <!–page[..]–> command.
Cinematic: Redid the exercise, this time by keeping the pagepost plugin activated… it did not resolve issue. Same dynamic, page URL changes, but first page is the same.
Thanks for clearing up my confusion, worrypascanada 🙂 I have to admit I was startled to see the long list of files, because the version I have only has the 8 files I had listed before. Perhaps Andot, the developer, has since updated the phprpc version for this plugin.
I’ve just tested this ‘new’ version on a local 2.5.1 install (with default theme) and it appears to be working just fine.
Quite frankly, I am actually a little baffled, as I’m now starting to wonder if it’s about permissions or clashes etc. Anyway, if you don’t mind trying a slightly different solution, I’ve uploaded my (older) copy of PagePost and provided a download link below:
http://www.mediafire.com/?yjlyc12w2zv
Hopefully you might find it useful. In the meantime… I’ll keep digging 😛
Thanks Mosey! I did as you suggested, not resolution of issue. I’ve installed latest version of pagepost pluing.
@worrypascanada: Thank you for taking the time to try it out 🙂 I really do believe it’s a permissions issue, since the javascript files (as you’ve listed above) are clearly *in* the correct folder, but cannot be accessed, hence the
pagepost is not definederror occurs.I wonder if you wouldn’t mind trying to CHMOD your folder permission ( /pagepost) to 755 please? This works for my host. The files themselves are still 644.
Thanks!
p/s: Having searched around the forums a little, it seems the general rule of thumb is that directories (under /wp-content so e.g. /plugins) are meant to be 755. Files, however, should all be 644.
This rule does not apply to /wp-includes.Oh! Boy. Folder pagepost was already 755… tried 777… no success. Reverted back to 755. Files under pagepost are 644.
You have lots of patience.
This rule does not apply to /wp-includes.
I doubt that’s correct. Nothing should have other permissions than that!
As for the question above, re: placement of the wp_link_pages
It should be right after the content. Mine is in the feedback div, but you can place it anywhere after the_content, style it as you wish etc. And yes, it should be there in single.php, too, if you want to use it there, too; or in any other template file where you need it.Is it possible to chmod /wp-content and /plugins to 755 as well please?
This rule does not apply to /wp-includes.
I doubt that’s correct. Nothing should have other permissions than that!
My mistake here, thanks for the correction 🙂 I really should have clarified my statement by saying that wp-includes should/might need to be more secure? However, now that I’ve re-read Hardening WordPress, what I said makes no sense at all :p
Whoohoo!
With
<!--nextpage-->and<?php wp_link_pages('arguments'); ?>within single.php… next pagepost is now working with multipages post.I have these other files in my theme, any suggestions if
<?php wp_link_pages('arguments'); ?>is needed in the following?single.php
archives.php
404.php
index.php
sidebar.php
footer.php
archive.php
page.php
search.php
functions.php
imagegallery.php
comments.php
thumb.php
sitemap.php
header.php
tag.php
home.phpDam, what a bugger. Thanks a million everybody.
Glad to hear you found a solution using
<!--nextpage-->! Alas I still don’t think pagepost is working at the moment 🙂Since this method works for you, I guess it would be best to uninstall and delete the plugin from the plugins folder, otherwise it does add a few extra lines to the header of each page.
<?php wp_link_pages('arguments'); ?>If you do not use real arguments, leave it empty:
<?php wp_link_pages(); ?>It depends… if in any of the following files you have the_excerpt – you don’t need the wp_link_pages:
index.php
archive.php
page.php
search.php
tag.php
home.phpIf there is the_content tag… you might need to insert the “paging” tag.
Mosey: After deleting pagepost plugin, everything is still working fine. Thanks for all the help.
Moshu: I will investigate your last suggestions. Thanks!
The topic ‘Next-Previous Page?’ is closed to new replies.