WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Next-Previous Page? (32 posts)

  1. worrypascanada
    Member
    Posted 6 years ago #

    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.

  2. worrypascanada
    Member
    Posted 6 years ago #

    Continued from my previous post:

    What I don't understand is why have <!--more--> as an option while writing an article if it just does not work?

    Thanks for your comments.

  3. worrypascanada
    Member
    Posted 6 years ago #

    Hi,

    I am still in need of a solution to resolve my issue with multi pages articles.

    Thanks for your kind support.

  4. threestyler
    Member
    Posted 6 years ago #

    Have you tried using the <!--nextpage--> tag?

  5. cinematic
    Member
    Posted 6 years ago #

    There is also a plugin pagepost
    http://www.coolcode.cn/show-115-1.html

    Site is in Chinese but you can see the zip download.

    The plugin allows you to split the content in pages using the tag
    <!--page:[title]-->

    You will have a navigation bar above and below the content.

  6. worrypascanada
    Member
    Posted 6 years ago #

    Thanks for your replies!

    Threestyler: <!--nextpage-->, without the pagepost plugin, this tag will not work.

    Cinematic: I have downloaded and installed the suggested plugin. With <!--nextpage-->, I can see the page numbers above and below, but when clicking page numbers, the next page does not show up... the URL is changing when clicking on page numbers. If I use the <!--page:[title]--> tag, I can't see the page numbers.

    Thanks for your patience and your support.

  7. worrypascanada
    Member
    Posted 6 years ago #

    Hi,

    I have tried to post my issue on http://www.coolcode.cn/show-115-1.html , but was unsuccessful in filling the comment form. Can you help?

    Thanks!

  8. flick
    Member
    Posted 6 years ago #

    @worrypascanada: This is actually one of my favourite plugins, and I know it works with 2.3 but haven't tested it with 2.5 yet.

    Anyway, the actual separator code is:
    <!--page-->

    The additional [title] tag was included later on so that visitors hovering over the link could see a title tag.

  9. worrypascanada
    Member
    Posted 6 years ago #

    Thanks Mosey,

    Revising my previous emails:

    With <!--page--> and pagepost plugin installed, I can see the page numbers above and below, but when clicking the page numbers, the next page does not show up... the URL is changing, but not the page. With <!--nextpage--> I can't see these numbers.

    Thanks for your patience.

  10. flick
    Member
    Posted 6 years ago #

    Hi worrypascanada,
    Just out of interest, are these files also in the plugin folder?

    innerhtml.js
    phprpc_client.js

  11. cinematic
    Member
    Posted 6 years ago #

    If I use the <!--page:[title]--> tag, I can't see the page numbers.

    Actually there shouldn't be a problem if you divide your content with these tags. I have used it in wp 2.5.1 even with the title tags. There is a bar above and below with the numbers and the content in between. Are you using the visual editor or html editor? Try the html editor.
    The post then would look something like this:

    <!--page:[page 1]-->
    <h3>heading</h3>
    <p>some content</p>
    <p>some more content</p>
    
    <!--page:[page 2]-->
    <p>some content</p>
    <p>some more content</p>
    
    <!--page:[page 3]-->
    <p>some content</p>
    <p>some more content</p>
  12. worrypascanada
    Member
    Posted 6 years ago #

    Mosey: The said files are in wp-content/plugins/pagepost.

    Cinematic: I will try later on today.

    Thanks for your kind support.

  13. flick
    Member
    Posted 6 years ago #

    @worrypascanada: I was asking as when I click on the links on your site, it gives a 'page post not defined' error in the Firefox Error Console, which I can replicate if the javascript related files are not available :) I think there's another pagepost.js.php file in the list.

    This is the full list of files:

    innerhtml.js
    language.php
    pagepost.css
    pagepost.js.php
    pagepost.php
    phprpc_client.js
    phprpc_server.php
    rpc.php

  14. moshu
    Member
    Posted 6 years ago #

    <!--nextpage-->, without the pagepost plugin, this tag will not work.

    That's a false statement... Here is an example from my blog showing that it works.
    The only "trick" is - you need the proper template tag in your theme files: Template_Tags/wp_link_pages

  15. worrypascanada
    Member
    Posted 6 years ago #

    Mosey:

    I have the following files and folder:

    dhparams...
    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.php

    Moshu:

    I might have to contact the theme builder in order to determine where to put the following code in a loop as suggested in your link: <?php wp_link_pages('arguments'); ?>. Per Template_Tags/wp_link_pages, I would need to put this code within index.php or any other pertinent places. Within index.php, where should I put this code?

    Thanks for helping out.

  16. flick
    Member
    Posted 6 years ago #

    @worrypascanada:

    Just to clarify: the folder structure should be like this

    wp-content/plugins/pagepost/pagepost.css
    wp-content/plugins/pagepost/language.php
    wp-content/plugins/pagepost/pagepost.php
    wp-content/plugins/pagepost/phprpc_server.php
    wp-content/plugins/pagepost/pagepost.js.php
    wp-content/plugins/pagepost/phprpc_client.js
    wp-content/plugins/pagepost/innerhtml.js
    wp-content/plugins/pagepost/phprpc_client.js

    Is it possible to confirm that this is the case for you please? Otherwise it seems as though the pagepost plugin files do not have their own 'pagepost' folder.

  17. worrypascanada
    Member
    Posted 6 years ago #

    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.php

    wp-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.dhp

    What should I do next with the issue of multipages? You guys are very patient. Thanks.

  18. worrypascanada
    Member
    Posted 6 years ago #

    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.

  19. cinematic
    Member
    Posted 6 years ago #

    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.

  20. worrypascanada
    Member
    Posted 6 years ago #

    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.

  21. flick
    Member
    Posted 6 years ago #

    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 :P

  22. worrypascanada
    Member
    Posted 6 years ago #

    Thanks Mosey! I did as you suggested, not resolution of issue. I've installed latest version of pagepost pluing.

  23. flick
    Member
    Posted 6 years ago #

    @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 defined error 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.

  24. worrypascanada
    Member
    Posted 6 years ago #

    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.

  25. moshu
    Member
    Posted 6 years ago #

    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.

  26. flick
    Member
    Posted 6 years ago #

    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

  27. worrypascanada
    Member
    Posted 6 years ago #

    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.php

    Dam, what a bugger. Thanks a million everybody.

  28. flick
    Member
    Posted 6 years ago #

    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.

  29. moshu
    Member
    Posted 6 years ago #

    <?php wp_link_pages('arguments'); ?>

    If you do not use real arguments, leave it empty:
    <?php wp_link_pages(); ?>

  30. moshu
    Member
    Posted 6 years ago #

    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.php

    If there is the_content tag... you might need to insert the "paging" tag.

Topic Closed

This topic has been closed to new replies.

About this Topic