Ok… I’ve got a slider plugin that creates a custom post type and each image is a post in that post type. It has a shortcode generator that is used to help a user copy/paste the shortcode into the page where they want to feature it. I love this little gallery, easily customizable and easy to use… except the shortcode generator part. So what I’d like to do since I’m doing this on the home page only anyway is be able to grab the ids of the posts and create the shortcode bit by hand.
The shortcode is formatted like this:
[galaxy_slider slide=”60,59,58″ animation=”fade”]
So I’m trying to figure out how to loop through all posts in the GalaxySlide post type and grab their id’s and then put them together in the slide=”60,59,58′ part.