• Resolved bryarworld

    (@bryarworld)


    The navigation to go to next set of reviews is broken. I did tried using different methods it still broken.. So when am in Editing mode or Divi builder I see it showing fine but in view mode it doesn’t and is broken..

    Please check the given link…

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    If you have added the [site_reviews] shortcode outside of the main page content, try adding this code snippet to your website (you can use the Code Snippets plugin to do this):

    add_filter('et_required_module_assets', function ($assets) {
    $assets[] = 'et_pb_gallery';
    return array_values(array_unique($assets));
    });
    Thread Starter bryarworld

    (@bryarworld)

    Hello again, thank for the reply, that fixed the style but it broke the navigation.. it doesn’t work anymore.. Just tho added that in the functions.php of the child theme.

    • This reply was modified 1 month, 2 weeks ago by bryarworld.
    Plugin Author Gemini Labs

    (@geminilabs)

    Site Reviews uses the WordPress get_pagenum_link function to get the paged links for the current page. For some reason, your website is telling this function that /tutorials/a-beginners-guide-to-resetting-afterlogic-admin-panel-password/ is the URL path for the current page (i.e. your home page). This is why the pagination links are not working.

    If I were to guess, something is wrong with your theme. Perhaps you are using a custom Loop in your theme files and forgot to reset it with wp_reset_postdata?

    You can test to see if this is being caused by your theme by switching to another official theme and then testing pagination there.

    Alternatively, try using the ajax option.

    [site_reviews pagination="ajax"]

    But if that also doesn’t work, you may need to stick with the loadmore option instead.

    [site_reviews pagination="loadmore"]
    Thread Starter bryarworld

    (@bryarworld)

    I noticed that as well, but I do not really have any custom functions related to my theme, the only one is the one we just added. As for loadmore and ajax, same they are not working.

    Tho, I do disabled all plugins to check if any of them affecting Site Reviews but still the same

    • This reply was modified 1 month, 2 weeks ago by bryarworld.
    Thread Starter bryarworld

    (@bryarworld)

    [site_reviews pagination="ajax"] Now, this works fine it wasn’t working because I had the display limited to 5, but it does change the URL or the link of the tab to that tutorials/a-beginners-guide-to-resetting-afterlogic-admin-panel-password/?reviews-page=6

    Plugin Author Gemini Labs

    (@geminilabs)

    Plugins are not the problem. Likely something in your theme is causing this problem as I said before.

    To prevent the URL from changing you could try this:

    But I suggest you look into why your theme is doing this:

    • Try creating a blank page with only the shortcode on it.
    • Check to see if you are using any custom get_posts or WP_Query Loops and make sure that you are doing it correctly (i.e. using wp_reset_postdata to restore the $post global to the current post in the main query).
    • Check to see if you are adding any custom rewrites to the permalink structure.
    • Compare the pagination when using your theme and then using another official theme.
    • etc.
    Thread Starter bryarworld

    (@bryarworld)

    Thanks sir, I just let it go that way and stick with the ajax one for now.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.