RoyalSlider picking up the wrong images
I have custom post type called "workshop." When a workshop is displayed, I want a RoyalSlider that scrolls through all images attached to that workshop post. I registered my slider ("register_new_royalslider_files( 1 );") in a wp_enqueue_scripts action.
I added code to my template file for the "workshop" post type:
echo get_new_royalslider( 1 );
But when I display the 2nd workshop it wants to display the first images that I attached to the first workshop. Shouldn't it just pick up all images currently attached to the post? Should I do a database lookup to grab all attachments attached to the workshop and construct a list? But what's the syntax for that?
I have to say the documentation for using the slider with WordPress PHP is really sparse and hard to find. I'm stumped.
.
help.dimsemenov.com
No comments:
Post a Comment