Image attributes developer API help
-
Hi,
I need help with setting the title attribute of each slide in the slider to the post title. I have this code so far:
function metaslider_add_rel_attribute_to_images($attributes, $slide, $slider_id) { $attributes['title'] = get_the_title(); return $attributes; } add_filter('metaslider_flex_slider_image_attributes', 'metaslider_add_rel_attribute_to_images', 10, 3);I would appreciate any help or examples on this as I am unsure of how to properly call this function. Thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Image attributes developer API help’ is closed to new replies.