display custom set of images

Bring Your Business to LifeSupportImage Storedisplay custom set of images

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #53146
    armandsdz
    Participant

    Hi!

    I’d like to display a custom set of images on one page, similar to gallery page.
    In fact it should be similar to Favorites page. Because on Favorites page there are images from different galleries, which is what I need.
    I know all IDs of images to be displayed.

    A bit of details:
    I have created custom taxonomy “ims_players” and every image can be associated to any amount of items of this taxonomy.
    When an item is selected all images associated to this item should be displayed.
    So, when http://[wp-path]/ims_players/player-name1/ is opened it should display all images associated with “player-name1”.
    It should have all functionality of Gallery page – add to cart etc.

    I tried to copy behavior of Favorites page and use Tags instead of custom taxonomy. It kind of worked..but as I understand, wordpress loads Tag page with a bit different parameters than Favorites page. Because of that there were some things that didn’t work, for example Select button did nothing in lightbox screen, because some scripts were not loaded.

    Anyway…I hope it’s understandable.
    Any advice?

    Thanks!

    #53175
    Xpark Media
    Keymaster

    @armandsdz,

    You are right, script that load on the gallery will not load on taxonomy page, this an Image Store behavior not a WordPress behavior, this to improve page performance.

    You can allow or add this script to your pages using the wp_enqueue_script function. You want to load _js/store.js,

    Be sure that you are creating a separate plugin so you don’t lose your changes on the next update.

    #53317
    armandsdz
    Participant

    Thanks!

    Yes, I added wp_enqueue_script and store.js functionality worked.
    But it was not the last thing to do…there were many “hacks” still to do…for example, define which price list to use for these images, some small details for “add to cart” functionality to work…took a lot of plugin code debugging.
    But I eventually got it working! 🙂

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