posts_nav_link using images
-
I’m trying to use images for the next page and prev page links but I’m not very good with PHP so I think I am messing something up. If I put the relative path to the template the images work but if I try to call the images based on the template folder it fails. I’m trying to get the below code to work:
<?php posts_nav_link(' ','<img src="<?php bloginfo('template_directory'); ?>/images/left.png" />','<img src="<?php bloginfo('template_directory'); ?>/images/right.png" />'); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘posts_nav_link using images’ is closed to new replies.