Search
Other Articles Anywhere questions
Forum

Random parameter doesn't function on upgraded Joomla 4 site

Calvin's Avatar Calvin
I have a sidebar module that contains just this one line:

{articles category="Shop Sidebar" ordering="random" limit="1"}{/articles}

This is supposed to pull a random article out of four in this category. Thus when someone reloads the page or visits another page with the same sidebar module, they should see one of the four different articles. However, only one inserted article is showing, with no randomizing happening.

It worked correctly in the J3 version of the site, but is not showing random articles on the J4 version.

I do have "Prepare Content" enabled.

I checked the syntax by using the Articles Anywhere button to create the line, and it generated the identical line.

If necessary, I can provide Admin access and FTP access.

Thanks again.
Peter van Westen's Avatar Peter van Westen ADMIN
This is working fine on my test setups.
It is probably down to caching.

Depending on how you have set up caching, you can probably solve this by disabling caching on that specific module.
Please post a rating at the Joomla! Extensions Directory
Calvin's Avatar Calvin
That was it. I disabled caching and it fixed the issue.

Thanks.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription