Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m getting the same problem but only when using the back button after viewing an individual listing, then the pagination disappears.

    To reproduce problem:

    https://internationallandalliance.com/oasis-park-resort/oasis-properties/

    1. Once on page, use the “Next” link to go to the second page of listings.
    2. Click to view an individual listing.
    3. Click the Browser’s back button.

    4. At this point there is are Prev or Next buttons but they don’t work, and there is no navigation slide bar. There is no way to see any other paginated page.

    5. Refreshing the page does not help. Tried the browser refresh button, the F5 key, and the Ctrl+F5 cord.
    6. To get it working again, the only thing that seems to work is to click the sub-menu navigation link on the page marked “Oasis Park Properties”.

    Problem happens in Pale Moon, FireFox, Win Safari, and Chrome browsers.

    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    Hello,leroy.brouwer

    I see pagination in the bottom of your page

    Hello,Trishah

    Page which you send is not valid.

    Regards.

    Please try again as this is the correct url: https://internationallandalliance.com/oasis-park-resort/oasis-properties/o

    Alternatively, go to: https://internationallandalliance.com/ Click on “Oasis Park Resort” then in the blue sub-menu click on “Oasis Park Properties”.

    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    @trishah I have found that issue on your site, but can’t replicate it anywhere else.

    You have a several js errors on your site which can cause unexpected issues. Try to disable third party plugins and change theme to default one to investigate the issue.

    Regards.

    I found the culprit… It is the “Collapse-O-Matic” plugin that I’m using on the FAQ page: https://internationallandalliance.com/oasis-park-resort/faqs-buying-property-in-mexico/

    First, I tried adding the plugin “WP deferred javaScript” to see if that would help only apply the js when needed but this plugin by itself causes the pagination to fail.

    So instead of using a different collapsing plugin and having the recode the page, I added the following to functions.php:

    add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );
    function my_deregister_javascript() {
    if ( !is_page('faqs-buying-property-in-mexico') ) {
    wp_deregister_script( 'collapseomatic-js' );
    }
    }

    What this says is: If the current page IS NOT the FAQ page then deregister the Collapse-O-Matic javascript.

    BTW, if anyone ever needs to do this for a different plugin, you find the script name that needs to be entered in wp_deregister_script() inside the plugin’s main PHP file under where it enqueue’s the script in the first place. In this case the line looks like this: wp_enqueue_script('collapseomatic-js');

    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    Thank you for feedback.

    Regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pagination doesn't work’ is closed to new replies.