Products page showing random number of products with each refresh

Our products page is displaying a random number of products every time we refresh the page. https://www.childhopeonline.org/product-category/sponsorship/

I’ve tried using this code in the functions.php file with no luck… https://gist.github.com/jameskoster/1601682

I’ve checked the theme’s customization and it is set to 12 posts per page. If I change this to 3 (for example), it will then display only 1 post per page. Any ideas?

Hi,

Thanks for writing in! It sounds like you might be having an issue with a third party plugin or script(prdctfltr). Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

Thank you for your understanding.

Thanks so much for your reply. Any advice to a newbie on how to find the culprit?

Hi @pchastie,

You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Let us know how it goes.

Thanks. :slight_smile:

OK. Thanks. And if it isn’t a plugin, then there might be some altered PHP code out there?

Hello There,

Thanks for updating in! In X theme, we do not have any custom code that displays the random number of the products. Our first guess is a 3rd party plugin which overrides the number of products which should be set in the customiser. By the way, please make sure that the theme and all your plugins is up to date. I noticed that you are using an older version. Could you please update to the latest version? Our latest versions are:
X Theme: 5.1.1
Cornerstone: 2.0.6

You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site. If you find anything to be out of date, you can review our update guide.

Please let us know how it goes.

I’ve tested all the plugins. None seem to be at fault unless it’s woocommerce itself. If I deactivate that plugin, I can’t see the products page. :wink: I believe the developer said there was a conflict preventing the theme upgrade. I just don’t know enough about it yet. Developer has been unavailable. Do you know anything about the plugin Woocommerce Product Archive Customizer? I noticed that when I deactivated that plugin the photos on the products page got bigger. Was hoping I could find the answer there, but it’s all PHP that I can’t interpret.

Hello There,

Thanks for updating in! Could you please update the theme to the latest version? At the moment, you are using an older version of X which is X 5.0.3 and Cornerstone 2.0.4. Theme and plugins that is out of date could potentially create issues in your site.

Please let us know how it goes.