Album and Tag Shortcodes?

Bring Your Business to LifeSupportImage StoreAlbum and Tag Shortcodes?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.