• I had a problem where the “Load more” button would not load more posts on a category page in non-default-language. I’m using the WPML plugin. I found a fix which required me to add code to the ajax-load-more.php.

    The solution can be found here:
    https://wpml.org/forums/topic/ajax-load-more-wpml-non-default-languages-not-loading/

    public function alm_query_posts() {
    
          if ( isset( $_GET['category'] ) && $_GET['category'] ) {
            unset($_REQUEST['post_id']);
          }
    
    [...]

    Of course that’s not ideal and the change will be lost when the plugin updates.

    Could you integrate it into the plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @mpseitenweise,
    Yes, another user had reported this as well. I plan to integrate once I find some time to test.

    Cheers,

    cnsmcannon

    (@cnsmcannon)

    Hello, I’m not sure if this is helpful, but I’d also like to point out that I’m having a related issue with WPML and displaying the posts for a term in a custom post type’s taxonomy.

    /es/recipes/ displays correctly, but when you add the desired term it would display no results, e.g., /es/recipes/platos-fuertes/

    The corresponding English queries work correctly.

    This is with code taken verbatim from: https://connekthq.com/plugins/ajax-load-more/docs/code-samples/taxonomy-archives/

    The above suggested hack doesn’t work in this case.

    Let me know if I can provide anymore useful context.

    Plugin Author Darren Cooney

    (@dcooney)

    @cnsmcannon – thanks. Im merged the category/tag fix into the next version and will add this to my list as well.

    Cheers,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug with WPML on category pages (and solution!)’ is closed to new replies.