• Resolved oguruma

    (@oguruma)


    I am looking to build a slider widget using RoyalSlider.

    The problem I am having is that the function geodir_get_images(); doesn’t spit out the actual attachment ID.

    I need some way to find the ID of the attached images.

    Is there another function to use?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Stiofan

    (@stiofansisland)

    Hi @oguruma,

    The standard WP way of storing images in the DB is not very efficient so we have our own tables, we do use the feature image for the first image but then our own tables for the rest. This means that only the first image has an WP attachment ID. You might be better just using the URLS?

    Thanks,

    Stiofan

    Thread Starter oguruma

    (@oguruma)

    @stiofansisland The problem with using URLs, and the reason why I need attachment IDs, is because royalSlider works best when you can define the image height/width in the slide. Also, because you can define multiple sizes for each slide. For example, you might want a thumbnail to use for slider navigation, a large for the main slider, and the full-size for when the slider is in fullscreen mode.

    Royalslider can handle the scaling of the slider very well if you define the height/width of the slide. It’s also very efficient since it only loads a couple images into the DOM on page load.

    From what I can tell, there is no way to pull all of that in from just the url.

    Plugin Author Stiofan

    (@stiofansisland)

    Our own slider does all that, what are the “extra” features you are looking to add?

    You can get all the info you need from our image output template but it will only help if you are a developer https://github.com/AyeCode/geodirectory/blob/master/templates/bootstrap/images/images.php#L118

    Thanks,

    Stiofan

    Thread Starter oguruma

    (@oguruma)

    RoyalSlider has several features that aren’t included with the included slider. It’s the best slider plugin I have found.

    • Thumbnails navigation instead of small tabs at the bottom
    • “Swipeable” or “draggable” instead of just clickable
    • Vertical slide scrolling (if desired)
    • Can display image caption if one exists
    • Auto-scaling of slider height/width

    For this project, specifically, I am using royalSlider elsewhere on the site, so I wanted to use the same slider throughout for a more consistent UI experience.

    • This reply was modified 2 years, 10 months ago by oguruma.
    Plugin Author Stiofan

    (@stiofansisland)

    @oguruma our slider has everything except “Vertical slide scrolling” The options to enable them are in the “GD > Post Images” block/shortcode/widget. You would find that on your details page template which you can find in your pages list or in GD > Settings > General > Pages.

    On top of that you will not be loading any more code or CSS/JS. However, I do understand you might want to still use that slider, for that you would likely need the help of a developer to pull the images in from our functions.

    If I can help further please let me know.

    Thanks,

    Stiofan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Return images/attachments ID?’ is closed to new replies.