Limited Time Offer

Save 50% on MetaSlider Pro!


Get MetaSlider
800,000+ WordPress sites are already using MetaSlider!

MetaSlider Documentation


Use this filter to modify or add attributes to each slide anchor (link) tag.

{type} can be flex, coin, responsive or nivo.



(array) (required) Default anchor attributes (eg url, target etc).


(array) (required) Slide data


(int) (required) Slideshow ID


This example will automatically link each slide to it’s full image URL. {type} can be flex, coin, responsive or nivo.

function metaslider_add_full_url_to_slides($attributes, $slide, $slider_id) {
	if (!strlen($attributes['href'])) {
		$attributes['href'] = wp_get_attachment_url($slide['id']);
	return $attributes;
add_filter('metaslider_flex_slider_anchor_attributes', 'metaslider_add_full_url_to_slides', 10, 3);

Start Using Your Slider Today!

Create and publish WordPress slideshows in minutes… What are you waiting for?