Use HTML in next_image_link and previous_image_link
-
Hey guys,
I’m trying to have a custom graphic for my previous/next gallery links, however if you provide this function with a custom string it seems to convert your HTML to entities.
This means the HTML literally appears on the page so users can read it, rather than being outputted as an actual image.
Is there a way to make this function output HTML, or am I going to need to resort to some kind of post-output filter to do it? Here is what I’m using:
<?php next_image_link(false, '<img src="next.png" alt="Next" />'); ?>
Hope someone can help! ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Use HTML in next_image_link and previous_image_link’ is closed to new replies.