Album and Tag Shortcodes?

Bring Your Business to LifeSupportImage StoreAlbum and Tag Shortcodes?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #56728
    jcharris
    Participant

    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-image

    Album 2
    gallery-a-first-image
    gallery-b-first-image
    gallery-c-first-image

    #56744
    Xpark Media
    Keymaster

    @jcharris,

    you can use the shortcode [image-store album=ID] for more information in check the shortcode page

    #56757
    jcharris
    Participant

    I 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

    #56758
    jcharris
    Participant

    Actually, 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

    #56766
    Xpark Media
    Keymaster

    @jcharris,

    You 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_tags

    you can also create custom template to display custom content base on post type or taxonomy.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.