• Resolved kirilltch

    (@kirilltch)


    Hi there. Nice plugin. I do have a little problem with it though. I can get the “next” button/link to show up underneath the posts. However navigation itself isn’t working. Since when I click on the next button it takes me to the “/page/2/” page, which shows exactly the same posts. Am I doing something wrong here?

    This is the site link:
    https://www.rustictastefulness.com/

    this is the code for the static page:
    [tpg_get_posts posts_per_page=5 page_next=”true”]

    And I have the payed version of the plugin (activated, since pagination is only supported with full version).
    Thanks in advance.
    Kirill

    https://www.ads-software.com/plugins/tpg-get-posts/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Criss Swaim

    (@cswaim)

    I am not sure why this is not working. I have seen this problem with one other theme.

    I looked at the archives to see how the theme handles paging and it shows the index numbers. Check the following:

    1) make sure more than 5 posts are being selected. I feel confident more than 5 are selected, but make sure.

    2) Re-save your permalinks (Settings -> Permalinks)

    3) the plugin without the page_next=’true’

    if the paging works without the page_next option, then that indicates
    the theme does not support showing just the prev/next buttons.

    Please post your results back.

    If it does work, then try the following

    3) nicer formatting try adding field_classes=”pagination=tpg-pagination-class page-numbers”

    Thread Starter kirilltch

    (@kirilltch)

    Hi,
    Thanks for the reply. Here are the following results:
    1. when setting to 5 posts, 5 posts are shown. When selecting 3 posts, 3 posts are shown and when selecting 7 posts, 7 posts are shown. So the number of posts to show seems to work.
    2. Did this, but no change.
    3. When page_next=’true’ is deleted, i can see the next/previous buttons, as well as the numbers 1,2,3. However it still doesnt work correctly, since any number i click on goes to the correct url, but still shows the first number of posts.
    3. added the line, no change.

    Thread Starter kirilltch

    (@kirilltch)

    Hi there, any update would be greatly appreciated.

    Plugin Author Criss Swaim

    (@cswaim)

    I really don’t know what is going on with your site. I have this plugin working on several sites with various themes without a problem. For pagination, it uses the basic WP feature. That makes me suspect (1) the theme has modified the pagination or (2) a plugin has modified the pagination.

    One easy test is to deactivate your plugins and see if pagination starts working. Beyond that, I don’t have any simple ideas. The next step is to have someone look at the code to debug this problem. That can be a bit time consuming and I am not in a position to provide that level of support for all the various combinations of themes and plugins.

    If I find something I will post back here, but at the moment it is a low priority as it is working on other sites.

    Plugin Author Criss Swaim

    (@cswaim)

    I may have resolved the problem with pagination on the front page for your site. With release 3.2.0, there is corrected code to use the page variable instead of paged for a static home page. I was able to recreate the pagination problem on my test theme and the patch corrected it.

    Add the option fp_pagination=’true’ to the shortcode on the front page.

    When you upgrade, remember to reload the extension on the setting tab. I will close this issue in a couple weeks unless you report it is still not working.

    Thread Starter kirilltch

    (@kirilltch)

    Ok I upgraded to the newest version of WordPress, as well as the tpg plugin to 3.2.0 and it still doesnt work. Now I cannot display next/previous buttons at all.
    This is the shortcode i use:

    [tpg_get_posts posts_per_page=10 page_next=’true’ fp_pagination=’true’]

    Any idea?

    Plugin Author Criss Swaim

    (@cswaim)

    After upgrading the base product, you must re-download the extension. The upgrade process deletes all the files. (A design problem that I am working on, but unable to correct with this release.)

    To re-load the extension, go to the plugin settings tab, and if the download button is not showing, change the time between checks for update to 0, save options, download extension and then reset the time to 360.

    Setting the time to 360, improves the performance and should be reset.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Next page not working’ is closed to new replies.