SOLVED: Blog Article Pagination dont work with Bricks 1.7.2

** Chrome
**Win 11

Site with Bricks 1.7.1

New Site, Bricks 1.7.1: PR Agentur führend in Kommunikation technischer Themen

Site with Bricks 1.7.2

Old Site, with Bricks 1.7.2: https://wasserlof-communications.com/staging

Just click on “Blog” then you see the problem

I got 2 custom loops on my website, one loop for the News Category “Presse” and one for the News Category “Blog”

The Pagination on the “Presse” Articles works fine, on the “Blog” Articles it always skips to Page 1.
It seems that 2 Loops dont work anymore. Everything was set up right.
Then i switch back to Bricks 1.7.1, everything works fine again.

I made a staging site to test it with 1.7.2, dont work. On the 1.7.1 site, everything works fine

Video:

Bricks 1.7.1

Bricks 1.7.1: Jam

Bricks 1.7.2

Bricks 1.7.2: Jam

1 Like

The 1.7.2 is not accessible.

thanks, i change the links to new one

I had besides Bricks Version this failure when the post count in the Wordpress Configuration (reading) was not the same like the count in the repeater. Did you check this?

Checked it now, it’s the same

1 Like

Hi @Wario ,

I am checking your staging site now. Will update here if any progress.

1 Like

Hi @Wario ,

Could you please check on your staging site.
I have identified the issue and applied a potential fix on your website.
Appreciate your feedback.

Regards,
Jenn

Hello,

yes looks good now! Is it a bug in Bricks or did i something wrong?

Hi @Wario ,

It’s a bug and nothing wrong with your setup.
We will include this fix in next release.

2 Likes

Hi @Wario ,

I apologize for my earlier reply.
This fix will not be in the latest release 1.7.3
As we need to perform more testing with the code before merging it into a stable release.

If you would like to test the code after updating to 1.7.3
Please open the this file and edit
wp-content/themes/bricks/includes/helpers.php

Line 49 - 53 replace as below

if ( bricks_is_frontend() ) {
	$no_preview = ( is_singular()  && get_post_type( $post_id ) === BRICKS_DB_TEMPLATE_SLUG ) ? false : true;

	if ( $no_preview && strpos( $key, 'templatePreview' ) === 0 ) {
 				return '';
 	}
}

Regards,
Jenn

yes, it works with the new code

Same happen to me Screen capture - 746bef7136cadda8cb02b76e337671c6 - Gyazo
Added the code but yet not work. I already have the version 1.7.3
It doesn’t care if I’m using the child theme right?

Hi @leandroDC ,

Thanks for reporting the issue, kindly send a temp admin access to help@bricksbuilder.io and included this forum thread as a reference.

Regards,
Jenn

I’m running this in a local environment. I’ll see to upload to a server so I can grant access

Hi guys,

We’ve fixed this issue in Bricks 1.8 beta, now available as a manual download in your account.

Please let us know if you are still experiencing issues.

As with any beta release, please do not use it on any production/live website. It is only meant for testing in a local/staging environment.

Best regards,

timmse

1 Like