Image in next post link
-
Hi there,
I couldn’t find a solution on the forum, so here is my first post.
I want to use images for my next/previous post links, but I want to link to them using the bloginfo(); function.
I can’t get it to work. I hope someone can tell me what’s wrong in this syntax.
<?php next_post_link( '%link', __( '<img src=" '. echo get_template_directory_uri(); .'/images/arrow_right.png">', 'twentyeleven' ) ); ?>
I also tried without the dots and with .’ instead of ‘.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Image in next post link’ is closed to new replies.