How many promotions are in your ‘rooms’ category?
There are three; one of which is in another category too.
Do you mind posting a link to where your slider is? I would like to take a look.
http://www.threeshoesdorset.co.uk
The main slider works fine and has promotions in home-promo, food,rooms,about and dorset categories.
The widgets in the footer are food,rooms and dorset respectively. All are set to display just one promotion as in my initial post.
Cheers
Ah… I didn’t catch that the first go round. You are limiting the results to one.
So here is what is happening:
1) The numberposts attribute ensures that only one result is returned.
2) The start_on attribute being set to random ensures that a random image is displayed from the results that are returned.
So basically you are selecting a single post and trying to randomize it. It is doing exactly what you are telling it to do, it just isn’t what you are expecting. You will actually need to adjust the query itself to be random so that you get a different single image every time.
Take a look at the FAQ and do a search for the promoslider_query_by_id
filter. That is the filter you would use to customize the query.
Thanks Micah
I hear what you say and have looked at the filter. I can’t say I understand exactly how to use it though:-)
Will I be able to do this from within a text widget?
Unfortunately, there is no easy way to implement what you want without touching some code. I wasn’t thinking about this particular use case when I created the plugin, so I will be sure to address this in the upcoming release. In the future, you will be able to do this with the shortcode.
If you want to mess with some code to get it working, just let me know and I can walk you through it.
Never mind. It’s such a great plugin.
I am sure a solution will present itself:-)
Thanks again for looking into this for me.