Treehouse: Grow your CSS skills. Land your dream job.

Anything Slider not working + shortcode suggestions

  • # September 19, 2011 at 10:30 pm


    I am using the Anything Slider and am not able to get the arrow functionality working. When I first install the plug-in, these arrows work, but as soon as I start changing the settings in the dashboard, the arrows no change slides when clicked. I have enable the arrows so I am not sure where I am going wrong.

    As a separate concern, could anyone advise on how to add more shortcode to the anything slider? I am relatively new to PHP, but if someone could point me in the right direction as to how to create new shortcodes, that would be great- I am looking to add a shortcode for showMultiple, allowing me to display 3 slides on one page, 1 one on another etc. I would also eventually like to add other shortcode regarding arrows, or start button, etc.

    Much thanks!


    # September 19, 2011 at 10:31 pm

    O, and my site is here

    # September 20, 2011 at 4:52 pm

    Hi Alex!

    Ok there are a few things that need fixing…

    First, the “clickForwardArrow” and “clickBackArrow” both need to be set to “click” so clicking on the arrows work.

    Additionally, the slider can’t resize all of the videos and images because they are wrapped multiple times, so maybe the best solution would be to add this css that makes all panel content match the panel size:

    .panel * { width: 333px; height: 240px; }

    Also, the arrows are appearing below the video because the videos need to have a wmode set. Either add them manually or include the video extension along with swfobject (should be loaded first).

    # September 20, 2011 at 5:04 pm

    Hey amillet,

    I’d be happy to add a few new shortcode options for you.

    Is “showMultiple” the only new option that you need?


    # September 22, 2011 at 8:18 pm

    Thanks Mottie and doobie!

    @doobie: showMultiple is the only one I would really need; others, like displaying arrows on one slider but not on the other, or the start button on one slider but not the other would be useful, but not urgent :)

    I’d be really happy if when you make the change for showMultiple, you could point to the source code of the plugin where you made the change – that way if I think of further shortcode I can come up with it myself!

    Thanks again!

    # September 26, 2011 at 1:57 pm

    New shortcodes that just came to mind and would be useful- whether the slider is vertical or not, and whether it is on autoPlay or not.

    That’d be great, thanks!

    # September 26, 2011 at 11:54 pm

    Hey amillet,

    Sorry for the delayed response. I’ll add these options this week and push out a new version asap.


    # October 1, 2011 at 1:24 pm

    Hey amillet,

    I just pushed a new version of the plugin with a bunch of new shortcode attributes. I haven’t documented all fo them, yet, but you can begin using showMultiple, vertical, easing and a bunch more.


    # October 2, 2011 at 11:30 pm

    Hey doobie!

    I just noticed, thanks!

    Although I tried for e.g. showMultiple=3 in my shortcode and it didn’t work, is this the right format?

    Also, I was looking at the jtd-anything-slider.php source file to see where you added the shortcode attributes, and am just curious as to how it works. How does the function jtd_anything_slides_shortcode($attr) work? I would love to learn more about how you made these changes.

    Thanks again!


    # October 2, 2011 at 11:51 pm

    Other observations:

    Vertical does work for me when I set it to vertical=true.

    Also, I noticed that my arrow functionality is still not working. My clickForwardArrow and clickBackArrow are set to “click” in my sourcecode, but when I look at the code of the page, they are indeed empty.. Any idea as to why this might be happening?


    # October 7, 2011 at 11:27 am

    Hey doobie,

    I don’t think the showMultiple works, but the vertical and others seem to be fine.



    # October 10, 2011 at 7:23 pm

    Any progress on the showMultiple shortcode fix?

    Thanks in advance!


Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.