• Resolved hshah

    (@hshah)


    Is it possible to place the slider in a post template and have it dynamically display the current post’s attachments?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @hshah

    I’m sorry but currently its not possible to modify the content of the published sliders according to the current post. It’s already on our to do list to create such functionality but our current system wasn’t really made for this, so it can take some time to get there.

    Currently the slider can only display the state that already exists in our backend as well, meaning that you need to create ( or duplicate and modify ) your slider with the related data.

    Best regards,
    Laszlo.

    Thread Starter hshah

    (@hshah)

    Ahh, that is a shame 🙁

    Just thinking out loud here:
    1) Is it possible to disable all caching with dynamic slides?

    2) If it is, would it be generated from scratch upon each time it gets loaded?

    3) If so, maybe you could add a postid parameter to the shortcode, which could be dynamically populated whenever it is used. Example of how I would do it with Elementor, which would result in the postid being inserted between the Before and After strings:

    Before = [smartslider3 slider=1 postid=
    After = ]

    View post on imgur.com

    I’m thinking that maybe it could be used by the generator as a condition to match against, when the slides are generated.

    4) Just to add, I have absolutely no idea how feasible this thought actually is… apologies in advance if it is silly.

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @hshah

    When you reduce the “Cache expiration” time:
    https://smartslider3.helpscoutdocs.com/article/88-generator-functionality#cacheexpiration
    in your generator to 0, that means the slider will run the PHP codes each time a user visits your page. So if your site has a lot of visitors, this could make a load on the server.

    So we will need to look deeper into this problem to find the ideal solution.

    Anyways thanks for your suggestions!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Current Post Attachments’ is closed to new replies.