Jump to content
Sign in to follow this  
ricardo

Images from the Media Library in the carousel?

Recommended Posts

ricardo

Is it possible to display images from the Media Library in the carousel? Thanks! Ricardo

Share this post


Link to post
Share on other sites
timlinson

Sorry Ricardo, not sure about this.. I need some more clarification on it myself. I'll be staying tuned.

Share this post


Link to post
Share on other sites
Andrew

yes, if you use 'hook' mode. To use the 'hook' mode do something like this: ` add_action('pagelines_carousel_list', 'my_carousel_list'); function my_carousel_list(){ $carousel_items = function_to_get_items(); foreach($carousel_items as $c):?>

  • IMAGEURLYOUR HOVER TITLE
  • <?php endforeach; } ` You can use any php you want this way.

    Share this post


    Link to post
    Share on other sites
    ricardo

    Thanks Andrew! The result is crude and unpolished but has definitely a lot of potential although without a way to sort the images (I'm using a plugin for that), it has a very limited application. Will save this for a later dev talk. Thanks again! Ricardo

    Share this post


    Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    Sign in to follow this  

    ×