Skip Navigation

Resolved

Topic Tags: Compatibility

Overview of the issue

If you are using the Grid element feature from Impreza with WPML, you will see that the pagination does not point the right page.

Workaround

Make a full backup of your site before proceeding:

  1. Open the …/wp-content/plugins/us-core/templates/us_grid/listing-end.php file.
  2. Replace this:
    // Removes from `admin-ajax.php` links
            $paginate_home_url = ( has_filter( 'us_tr_home_url' ) )
                ? apply_filters( 'us_tr_home_url', NULL ) 
                : trailingslashit( home_url() ); 

    With:

    // Removes from `admin-ajax.php` links 
            $paginate_home_url = ( has_filter( 'us_tr_home_url' ) )
                ? trailingslashit( apply_filters( 'us_tr_home_url', NULL ) )
                : trailingslashit( home_url() );
      
            $paginate_links = str_replace( $paginate_home_url . 'wp-admin/admin-ajax.php', '', $paginate_links ); 
    

2 Responses to “Impreza Theme - Grid pagination link is broken”