• Possible to Purse or extract links from any WordPress SHortcode? Like I am using Skuat Google Drive Gallery plugin to show my google drive gallries here in WordPress using SHortcode something like this [sgdg path=”example CLIENT PICz/2866/266141/preview_sets/premium_watermarked/16_best_edited_watermarked”]

    I jsut need to create a slider inseads of a grid gallery, any other way to do that?

    I used Jquery to extract Links of images from shortcode but faild

    Because I don’t like gallery grid format so I need to be a slider that’s why I need links should be extracted and used for any slider dynamically

    • slider plugin only allows media from static sources like links and WordPress media galleries, but I want to create a slider of images shown as a gallery through my skuat google drive gallery shortcode, which can be done only dynamically I think –
    • I can create a slider, by downloading content from Drive and adding it to the slider, but I have planned some advanced work, I have a business where I sell pics to customers, and every person got a link to access his products, and every product contains images in the description as shortcode which output gallery but I want to show slider at the homepage, I need to create a function that detects sgdg shortcode from products description, and purse or extract image links, and create a slider, that’s all a totally dynamic work, do you have idea it’s possible??? 
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Without knowing the specifics of the shortcode it’s difficult to make meaningful suggestions. I think you could create some custom CSS for the gallery grid which hides all but one image. Use JavaScript to periodically alter element classes so the images in the grid become visible, then hidden again, at a defined interval. Setup the CSS so all images appear in the same position instead of in their usual grid pattern.

    You’ve then converted a gallery grid into a slider without scraping or parsing the shortcode content or altering its HTML. You’ve only altered how it’s displayed. If you do require different source files due to differences in image sizes for the grid vs. your slider, JavaScript could update the filenames as long as your naming scheme for various sizes is applied consistently.

Viewing 1 replies (of 1 total)
  • The topic ‘Possible to Purse or extract links from any WordPress SHortcode?’ is closed to new replies.