Bring Your Business to Life › Support › Image Store › Album and Tag Shortcodes?
- AuthorPosts
- January 13, 2014 at 2:40 pm #56728jcharrisParticipant
Is there already a shortcode for displaying a list of albums or tags?
It would be great if there was a way to display all images for all galleries assigned to a range of albums
Or… just the first image in each gallery assigned to each album or tag.
For example:
Album 1
gallery-a-first-image
gallery-b-first-image
gallery-c-first-imageAlbum 2
gallery-a-first-image
gallery-b-first-image
gallery-c-first-imageJanuary 14, 2014 at 2:25 am #56744Xpark MediaKeymasteryou can use the shortcode
[image-store album=ID]
for more information in check the shortcode pageJanuary 15, 2014 at 9:26 am #56757jcharrisParticipantI understand. But is there a shortcode to print a list of all albums? Similar to wp_list_pages() or wp_list_categories?
I can write my own, I guess. But I was hoping that you already had one pre-rolled. This would be -very- handy.
TIA,
—JC
January 15, 2014 at 2:12 pm #56758jcharrisParticipantActually, what would help most would be a SQL Query I can apply to WP_Query to grab the following:
ALBUM_NAME, ALBUM_POST_ID, GALLERY_NAME, GALLERY_POST_ID orderby ALBUM_NAME…I want to create a ‘tree’ similar to WP_Get_Category with all albums and then the child galleries under each. If I had a single SQL Query it would execute much faster.
TIA,
—JC
January 16, 2014 at 8:47 pm #56766Xpark MediaKeymasterYou should be able to WP_Query to pull anything you want; you just need to use the custom post values. Galleries and images are just a custom post types and albums are custom taxonomies.
galleries: ims_gallery
image: ims_image
albums: ims_album
tags: ims_tagsyou can also create custom template to display custom content base on post type or taxonomy.
- AuthorPosts
- You must be logged in to reply to this topic.