Text widget: random posts of a given category
-
Hi, i’ve used for a while this little code in the text widget for displaying five random posts of “consigliato” category:
[display-posts category="consigliato" orderby="rand" posts_per_page="5"]
Now for some reason it displays always the same five posts (on over 60 of this category), not even the lasts. What can i do to have again the widget showing the random posts as before? Maybe i’ve modified something by mistake but i don’t think it’s the case…
The blog I need help with is: (visible only to logged in users)
-
Hi,
The code looks good. I think it might be a glitch. Will add a tag to the sidebar of this topic to call for staff attention. -
Hi @rickywesa , the five posts are chosen randomly, but the result is cached for performance — if they weren’t before, this was an issue that was fixed. Every time the cache clears, you’ll get five different posts. Will that work for you?
- The topic ‘Text widget: random posts of a given category’ is closed to new replies.