Viewing 11 replies - 1 through 11 (of 11 total)
  • I have the same problem

    You can change the language elimiar or at least?

    Thank you

    Hi, I solved this problem like this;

    Find this line

    if ( is_archive() || is_post_type_archive() || !$is_product_query )

    And change it to

    if ( is_archive() || is_post_type_archive() || !is_singular( 'product' ) || !$is_product_query)

    Thread Starter Geetar

    (@geetar)

    Hi imhakanarslan,

    Thanks for the code. I will give it a try.

    Regards

    Thanks imhakanarslan

    t worked for me!!

    @imhakanarslan the fix you posted does remove the “Page 1” titles from idividual product pages, but also ruins the your plugin’s functionality along the way. The pagination is created but all buttons redirect to the first page only….

    Still experiencing this issue and looking for a fix too. Adding the suggested check of !(is_singular(‘product’) removes the pagination buttons, though the pages exist.

    I added this code for me and in my tests I think it work fine.

    Insert at begin of function add_paged_param($query):

    public function add_paged_param( $query ) {
    
            // Get paged from main query only
            // ! frontpage missing the post_type
    
            //laTribu - Remove "Page 1" at end of breadcrumb on products pages
            if( isset( $query->query['post_type'] ) ){
                        
              if( $query->query['post_type'] == "product" ) {
                return;
              }
            }
            //laTribu
    
        //rest of code...
    

    @carret YESSSSSSS finally there is a fix!

    This solves the issue – THANK YOU!

    After update to version 1.0.9 the file to apply fix is class-pagination.php in directory inc, (shortcode-pagination-for-woocommerce/inc/class-pagination.php):

    
    public static function add_paged_param( $query ) {
        $is_product_query = self::is_product_query( $query );
    
        //LaTribu - Remove "Page 1" at end of breadcrumb on products pages
    
        if ( isset($query->query['post_type']) && $query->query['post_type'] == "product" ){
        return;
        }
        //LaTribu
    
    //rest of code...
    
    Plugin Contributor Iconic

    (@iconicwp)

    Hey,

    Sorry – didn’t realise this was still an issue. Just pushed v1.0.10 which fixes this.

    Thanks,
    James

    Thanks to you for the plugin and the update.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Breadcrumbs display "/Page 1"’ is closed to new replies.